aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2019-06-01 15:07:35 +0300
committerKazuki Yamaguchi <k@rhe.jp>2021-09-26 19:17:44 +0900
commitb048b2d2111af1deb9121bb30409fc50a810622e (patch)
treef523cc9ac144d31ead3297f439cc37b864518d06
parent3e9a4b65fae8f3f845bca39d798edaf45242815e (diff)
downloadruby-openssl-b048b2d2111af1deb9121bb30409fc50a810622e.tar.gz
Ignore warnings about ambiguous first argument with the negative integer.
[ This is a backport to the 2.1 branch. ] (cherry picked from commit ruby/ruby@3c77ef9adc567af58e27c62db35d618f3b3069d2)
-rw-r--r--test/test_x509name.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/test_x509name.rb b/test/test_x509name.rb
index e31b5e29..f0146595 100644
--- a/test/test_x509name.rb
+++ b/test/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)