summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/ripper/test_scanner_events.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ripper/test_scanner_events.rb b/test/ripper/test_scanner_events.rb
index 7d5bb3c814..e792ca8f4d 100644
--- a/test/ripper/test_scanner_events.rb
+++ b/test/ripper/test_scanner_events.rb
@@ -83,6 +83,10 @@ class TestRipper::ScannerEvents < Test::Unit::TestCase
[[1, 1], :on_tstring_content, "foo\n\xe3\x80\xa0"],
[[2, 3], :on_tstring_end, "'"]],
Ripper.lex("'foo\n\xe3\x80\xa0'")
+ assert_equal [[[1, 0], :on_tstring_beg, "'"],
+ [[1, 1], :on_tstring_content, "\u3042\n\u3044"],
+ [[2, 3], :on_tstring_end, "'"]],
+ Ripper.lex("'\u3042\n\u3044'")
end
def test_location