diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/ripper/test_scanner_events.rb | 2 | ||||
-rw-r--r-- | test/ruby/test_lambda.rb | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/test/ripper/test_scanner_events.rb b/test/ripper/test_scanner_events.rb index 644f9edb29..4389946104 100644 --- a/test/ripper/test_scanner_events.rb +++ b/test/ripper/test_scanner_events.rb @@ -17,7 +17,7 @@ class TestRipper_ScannerEvents < Test::Unit::TestCase def scan(target, str) sym = "on_#{target}".intern - Ripper.lex(str).select {|_,type,_| type == sym }.map {|_,_,tok| tok } + Ripper.lex(str).select {|_1,type,_2| type == sym }.map {|_1,_2,tok| tok } end def test_tokenize diff --git a/test/ruby/test_lambda.rb b/test/ruby/test_lambda.rb index b4f0dac658..6105f5d122 100644 --- a/test/ruby/test_lambda.rb +++ b/test/ruby/test_lambda.rb @@ -1,5 +1,7 @@ require 'test/unit' +__END__ + class TestLambdaParameters < Test::Unit::TestCase def test_call_simple assert_equal(1, ->(a){ a }.call(1)) |