diff options
Diffstat (limited to 'test/ripper')
-rw-r--r-- | test/ripper/test_scanner_events.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/ripper/test_scanner_events.rb b/test/ripper/test_scanner_events.rb index 2474588f76..3eed35718b 100644 --- a/test/ripper/test_scanner_events.rb +++ b/test/ripper/test_scanner_events.rb @@ -591,6 +591,15 @@ class TestRipper::ScannerEvents < Test::Unit::TestCase scan('tstring_end', '%Q[abcdef]') end + def test_tstring_suffix + assert_equal ['"f'], + scan('tstring_end', '"abcdef"f') + assert_equal [']f'], + scan('tstring_end', '%q[abcdef]f') + assert_equal [']f'], + scan('tstring_end', '%Q[abcdef]f') + end + def test_regexp_beg assert_equal [], scan('regexp_beg', '') |