diff options
Diffstat (limited to 'test/ripper/test_scanner_events.rb')
-rw-r--r-- | test/ripper/test_scanner_events.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/ripper/test_scanner_events.rb b/test/ripper/test_scanner_events.rb index b7c5a02322..b815da18f2 100644 --- a/test/ripper/test_scanner_events.rb +++ b/test/ripper/test_scanner_events.rb @@ -881,6 +881,13 @@ class TestRipper::ScannerEvents < Test::Unit::TestCase scan('ignored_nl', "1;\r\n") end + def test_ignored_sp + assert_equal [], + scan('ignored_sp', "<<~EOS\nheredoc\nEOS") + assert_equal [" "], + scan('ignored_sp', "<<~EOS\n heredoc\nEOS") + end + def test___end__ assert_equal [], scan('__end__', "") |