diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-06-01 15:07:35 +0300 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-06-01 15:07:35 +0300 |
commit | 3c77ef9adc567af58e27c62db35d618f3b3069d2 (patch) | |
tree | a8e80cdd3d96e566f4ceded1e57984d6d3581a0a /test/openssl | |
parent | 9eecd7a2fd0b67aa13450887a1fee9a6638b9e4e (diff) | |
download | ruby-3c77ef9adc567af58e27c62db35d618f3b3069d2.tar.gz |
Ignore warnings about ambiguous first argument with the negative integer.
Diffstat (limited to 'test/openssl')
-rw-r--r-- | test/openssl/test_x509name.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/openssl/test_x509name.rb b/test/openssl/test_x509name.rb index e31b5e29fb..f0146595d6 100644 --- a/test/openssl/test_x509name.rb +++ b/test/openssl/test_x509name.rb @@ -409,12 +409,12 @@ class OpenSSL::TestX509Name < OpenSSL::TestCase n2 = OpenSSL::X509::Name.new([["CN", "a"]]) n3 = OpenSSL::X509::Name.new([["CN", "ab"]]) - assert_equal 0, n1 <=> n2 - assert_equal -1, n1 <=> n3 - assert_equal 0, n2 <=> n1 - assert_equal -1, n2 <=> n3 - assert_equal 1, n3 <=> n1 - assert_equal 1, n3 <=> n2 + assert_equal(0, n1 <=> n2) + assert_equal(-1, n1 <=> n3) + assert_equal(0, n2 <=> n1) + assert_equal(-1, n2 <=> n3) + assert_equal(1, n3 <=> n1) + assert_equal(1, n3 <=> n2) end def name_hash(name) |