summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-06-13 22:03:10 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-06-13 22:03:10 +0900
commit043f010c28e82ea38978bf8ed885416f133b5b75 (patch)
tree7e3fd87929df736b475adeb37eabe4d2221da7a5 /test
parentf169043d81524b5b529f2c1e9c35437ba5bc3a7a (diff)
parse.y: moved pipeline to expr
To allow arguments without parentheses.
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_syntax.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_syntax.rb b/test/ruby/test_syntax.rb
index 7bffb8790b..b3e2183830 100644
--- a/test/ruby/test_syntax.rb
+++ b/test/ruby/test_syntax.rb
@@ -1382,7 +1382,7 @@ eom
def test_pipeline_operator
assert_valid_syntax('x |> y')
x = nil
- assert_equal("121", eval('x = 12 |> pow(2) |> to_s(11)'))
+ assert_equal("121", eval('x = 12 |> pow(2) |> to_s 11'))
assert_equal(12, x)
end