summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2021-09-09 23:34:30 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2021-09-28 17:52:57 +0900
commit9d62c871a094e16a31f87720c888453f0f50654e (patch)
tree2f862485e2d3d99d8766c0728e692e38ceea8ac5 /test
parentdefa520cf2d1b4ed14662ace708254e74732a79d (diff)
downloadpsych-9d62c871a094e16a31f87720c888453f0f50654e.tar.gz
test/psych/test_scalar_scanner.rb: Prevent a warning
``` [ 4696/20990] TestAst#test_ranges:test/psych/test_scalar_scanner.rb(none):138: warning: ambiguous first argument; put parentheses or a space even after `-' operator ``` http://rubyci.s3.amazonaws.com/ubuntu/ruby-master/log/20210909T123007Z.log.html.gz
Diffstat (limited to 'test')
-rw-r--r--test/psych/test_scalar_scanner.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/psych/test_scalar_scanner.rb b/test/psych/test_scalar_scanner.rb
index abd5515..ebc9fbd 100644
--- a/test/psych/test_scalar_scanner.rb
+++ b/test/psych/test_scalar_scanner.rb
@@ -135,7 +135,7 @@ module Psych
assert_equal 1, ss.tokenize('1')
assert_equal 1, ss.tokenize('+1')
- assert_equal -1, ss.tokenize('-1')
+ assert_equal(-1, ss.tokenize('-1'))
assert_equal 0b010101010, ss.tokenize('0b010101010')
assert_equal 0b010101010, ss.tokenize('0b0,1_0,1_,0,1_01,0')