diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/test_x509name.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test_x509name.rb b/test/test_x509name.rb index e31b5e29..531af19f 100644 --- a/test/test_x509name.rb +++ b/test/test_x509name.rb @@ -402,6 +402,9 @@ class OpenSSL::TestX509Name < OpenSSL::TestCase n2 = OpenSSL::X509::Name.parse_rfc2253 'CN=a' assert_equal n1, n2 + + assert_equal false, n1 == 'abc' + assert_equal false, n2 == nil end def test_spaceship @@ -415,6 +418,9 @@ class OpenSSL::TestX509Name < OpenSSL::TestCase assert_equal -1, n2 <=> n3 assert_equal 1, n3 <=> n1 assert_equal 1, n3 <=> n2 + assert_equal nil, n1 <=> 'abc' + assert_equal nil, n2 <=> 123 + assert_equal nil, n3 <=> nil end def name_hash(name) |