diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/openssl/test_digest.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/openssl/test_digest.rb b/test/openssl/test_digest.rb index 81085d2c9c..86c30d973c 100644 --- a/test/openssl/test_digest.rb +++ b/test/openssl/test_digest.rb @@ -103,6 +103,14 @@ class OpenSSL::TestDigest < Test::Unit::TestCase end end + def test_openssl_digest + assert_equal OpenSSL::Digest::MD5, OpenSSL::Digest("MD5") + + assert_raises NameError do + OpenSSL::Digest("no such digest") + end + end + private def check_digest(oid) |