Prevent "ambiguous first argument" warnings

```
/home/chkbuild/chkbuild/tmp/build/20230905T063003Z/ruby/test/yarp/compiler_test.rb:16: warning: ambiguous first argument; put parentheses or a space even after `+' operator
/home/chkbuild/chkbuild/tmp/build/20230905T063003Z/ruby/test/yarp/compiler_test.rb:17: warning: ambiguous first argument; put parentheses or a space even after `-' operator
/home/chkbuild/chkbuild/tmp/build/20230905T063003Z/ruby/test/yarp/compiler_test.rb:28: warning: ambiguous first argument; put parentheses or a space even after `+' operator
/home/chkbuild/chkbuild/tmp/build/20230905T063003Z/ruby/test/yarp/compiler_test.rb:29: warning: ambiguous first argument; put parentheses or a space even after `-' operator
```

http://rubyci.s3.amazonaws.com/debian10/ruby-master/log/20230905T063003Z.log.html.gz
This commit is contained in:
Yusuke Endoh 2023-09-05 17:35:28 +09:00
parent 77db0ca6c8
commit 5b146eb5a1

View File

@ -13,8 +13,8 @@ module YARP
def test_FloatNode
assert_equal 1.0, compile("1.0")
assert_equal 1.0e0, compile("1.0e0")
assert_equal +1.0e+0, compile("+1.0e+0")
assert_equal -1.0e-0, compile("-1.0e-0")
assert_equal(+1.0e+0, compile("+1.0e+0"))
assert_equal(-1.0e-0, compile("-1.0e-0"))
end
def test_ImaginaryNode
@ -25,8 +25,8 @@ module YARP
def test_IntegerNode
assert_equal 1, compile("1")
assert_equal +1, compile("+1")
assert_equal -1, compile("-1")
assert_equal(+1, compile("+1"))
assert_equal(-1, compile("-1"))
# assert_equal 0x10, compile("0x10")
# assert_equal 0b10, compile("0b10")
# assert_equal 0o10, compile("0o10")