Skip to content

Commit

Permalink
test/psych/test_scalar_scanner.rb: Prevent a warning
Browse files Browse the repository at this point in the history
```
[ 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
  • Loading branch information
mame committed Sep 9, 2021
1 parent 34839e4 commit 141db4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/psych/test_scalar_scanner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def test_scan_int_commas_and_underscores

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')
Expand Down

0 comments on commit 141db4f

Please sign in to comment.