aboutsummaryrefslogtreecommitdiffstats
path: root/test/openssl
diff options
context:
space:
mode:
Diffstat (limited to 'test/openssl')
-rw-r--r--test/openssl/test_bn.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/openssl/test_bn.rb b/test/openssl/test_bn.rb
index 274afba3bb..0b5cd84241 100644
--- a/test/openssl/test_bn.rb
+++ b/test/openssl/test_bn.rb
@@ -272,6 +272,11 @@ class OpenSSL::TestBN < OpenSSL::TestCase
assert_equal(0, @e1.ucmp(-999))
assert_instance_of(String, @e1.hash.to_s)
end
+
+ def test_type_error
+ bug15760 = '[ruby-core:92231] [Bug #15760]'
+ assert_raise(TypeError, bug15760) { OpenSSL::BN.new(nil, 2) }
+ end
end
end