diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-08-29 15:09:43 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-08-29 15:27:59 +0900 |
commit | 2ed68d0ff9a932efbc4393c869534040dec8f647 (patch) | |
tree | 60a21a02ebbc9ae018125c7a46e714e571845151 /test | |
parent | 893900dc7876596fab0e488affddf3abcb510445 (diff) | |
download | ruby-2ed68d0ff9a932efbc4393c869534040dec8f647.tar.gz |
Revert "Add pipeline operator [Feature #15799]"
This reverts commits:
* d365fd5a024254d7c105a62a015a7ea29ccf3e5d
* d780c3662484d6072b3a6945b840049de72c2096
* aa7211836b769231a2a8ef6b6ec2fd0ec882ef29
* 043f010c28e82ea38978bf8ed885416f133b5b75
* bb4dd7c6af05c7821d572e2592ea3d0cc748d81f
* 043f010c28e82ea38978bf8ed885416f133b5b75
* f169043d81524b5b529f2c1e9c35437ba5bc3a7a
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/94645
Diffstat (limited to 'test')
-rw-r--r-- | test/ripper/test_scanner_events.rb | 2 | ||||
-rw-r--r-- | test/ruby/test_syntax.rb | 9 |
2 files changed, 0 insertions, 11 deletions
diff --git a/test/ripper/test_scanner_events.rb b/test/ripper/test_scanner_events.rb index 02312ef64c..75ae29491d 100644 --- a/test/ripper/test_scanner_events.rb +++ b/test/ripper/test_scanner_events.rb @@ -573,8 +573,6 @@ class TestRipper::ScannerEvents < Test::Unit::TestCase scan('op', 'obj.:foo') assert_equal [], scan('op', %q[`make all`]) - assert_equal %w[|>], - scan('op', %q[x|>y]) end def test_symbeg diff --git a/test/ruby/test_syntax.rb b/test/ruby/test_syntax.rb index f0a22903b1..05e6de38f5 100644 --- a/test/ruby/test_syntax.rb +++ b/test/ruby/test_syntax.rb @@ -1388,15 +1388,6 @@ eom assert_syntax_error('@1', /outside block/) end - def test_pipeline_operator - assert_valid_syntax('x |> y') - 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")) - assert_syntax_error('a|>-b', /unexpected '-'/) - end - def test_value_expr_in_condition mesg = /void value expression/ assert_syntax_error("tap {a = (true ? next : break)}", mesg) |