From 3c77ef9adc567af58e27c62db35d618f3b3069d2 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Sat, 1 Jun 2019 15:07:35 +0300 Subject: Ignore warnings about ambiguous first argument with the negative integer. --- test/openssl/test_x509name.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'test/openssl') 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) -- cgit v1.2.3