diff options
| author | nagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-04-04 15:56:00 +0000 |
|---|---|---|
| committer | nagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-04-04 15:56:00 +0000 |
| commit | 926d1cbf2ff816a48d94db9d2490177383609e28 (patch) | |
| tree | 8fb8a002f4f9af3d8c500cc36514d8adcddbd027 /test | |
| parent | d825fc8de6e94abb5e918d3c6e5b4d56f572975c (diff) | |
merge revision(s) 40090:
* ext/openssl/ossl_bn.c (ossl_bn_initialize): fix can't create from bn.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@40113 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
| -rw-r--r-- | test/openssl/test_bn.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/openssl/test_bn.rb b/test/openssl/test_bn.rb index 7136de9a27..af1c72c8e9 100644 --- a/test/openssl/test_bn.rb +++ b/test/openssl/test_bn.rb @@ -3,6 +3,10 @@ require_relative 'utils' if defined?(OpenSSL) class OpenSSL::TestBN < Test::Unit::TestCase + def test_bn_to_bn + assert_equal(999.to_bn, OpenSSL::BN.new(999.to_bn)) + end + def test_integer_to_bn assert_equal(999.to_bn, OpenSSL::BN.new(999.to_s(16), 16)) assert_equal((2 ** 107 - 1).to_bn, OpenSSL::BN.new((2 ** 107 - 1).to_s(16), 16)) |
