diff options
author | Espartaco Palma <esparta@gmail.com> | 2019-07-29 01:50:57 -0700 |
---|---|---|
committer | Espartaco Palma <esparta@gmail.com> | 2019-07-29 01:50:57 -0700 |
commit | 2f2d444c0e8d1bc64f440c205775dbdd8b9ae7fc (patch) | |
tree | 7795c485e6ac92ede099e9e8ce3064466a1ef978 /test | |
parent | 3009a723653f142f34d7397f85c151d00a042b05 (diff) | |
download | ruby-openssl-2f2d444c0e8d1bc64f440c205775dbdd8b9ae7fc.tar.gz |
Silence warning on spaceship tests
/src/test/test_x509name.rb:416: warning: ambiguous first argument; put parentheses or a space even after `-' operator
/src/test/test_x509name.rb:418: warning: ambiguous first argument; put parentheses or a space even after `-' operator
Diffstat (limited to 'test')
-rw-r--r-- | test/test_x509name.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_x509name.rb b/test/test_x509name.rb index 531af19f..738397d4 100644 --- a/test/test_x509name.rb +++ b/test/test_x509name.rb @@ -413,9 +413,9 @@ class OpenSSL::TestX509Name < OpenSSL::TestCase n3 = OpenSSL::X509::Name.new([["CN", "ab"]]) assert_equal 0, n1 <=> n2 - assert_equal -1, n1 <=> n3 + assert_equal(-1, n1 <=> n3) assert_equal 0, n2 <=> n1 - assert_equal -1, n2 <=> n3 + assert_equal(-1, n2 <=> n3) assert_equal 1, n3 <=> n1 assert_equal 1, n3 <=> n2 assert_equal nil, n1 <=> 'abc' |