summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ext/openssl/ossl_bn.c1
-rw-r--r--test/test_bn.rb1
2 files changed, 1 insertions, 1 deletions
diff --git a/ext/openssl/ossl_bn.c b/ext/openssl/ossl_bn.c
index cdd7b0ea..0f9a6d3a 100644
--- a/ext/openssl/ossl_bn.c
+++ b/ext/openssl/ossl_bn.c
@@ -173,7 +173,6 @@ ossl_bn_alloc(VALUE klass)
/*
* call-seq:
- * OpenSSL::BN.new => aBN
* OpenSSL::BN.new(bn) => aBN
* OpenSSL::BN.new(integer) => aBN
* OpenSSL::BN.new(string) => aBN
diff --git a/test/test_bn.rb b/test/test_bn.rb
index 4e447a5f..ee5b53ea 100644
--- a/test/test_bn.rb
+++ b/test/test_bn.rb
@@ -15,6 +15,7 @@ class OpenSSL::TestBN < OpenSSL::TestCase
end
def test_new
+ assert_raise(ArgumentError) { OpenSSL::BN.new }
assert_raise(ArgumentError) { OpenSSL::BN.new(nil) }
assert_raise(ArgumentError) { OpenSSL::BN.new(nil, 2) }