diff options
author | thekuwayama <thekuwayama@gmail.com> | 2019-06-21 07:02:06 +0900 |
---|---|---|
committer | thekuwayama <thekuwayama@gmail.com> | 2019-06-21 19:36:50 +0900 |
commit | c3c69ad92b1e53f17fdc0d9004019fa26f3769e4 (patch) | |
tree | f9f343a8a55d80ffd0c9f71c80e756e8d044c773 | |
parent | 7947b1fbfbfb16e0f5cf30e43d13beb94e22231f (diff) | |
download | ruby-openssl-c3c69ad92b1e53f17fdc0d9004019fa26f3769e4.tar.gz |
fix doc about `OpenSSL::BN.new`
add testcase for `OpenSSL::BN.new` call without arguments
-rw-r--r-- | ext/openssl/ossl_bn.c | 1 | ||||
-rw-r--r-- | test/test_bn.rb | 1 |
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) } |