diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_syntax.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_syntax.rb b/test/ruby/test_syntax.rb index b3e2183830..d2638c79b4 100644 --- a/test/ruby/test_syntax.rb +++ b/test/ruby/test_syntax.rb @@ -1384,6 +1384,7 @@ eom x = nil assert_equal("121", eval('x = 12 |> pow(2) |> to_s 11')) assert_equal(12, x) + assert_equal([2, 4, 6], eval("1.. |> take 3\n|> map do @1 * 2 end")) end private |