diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-03-26 00:57:14 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-03-26 00:57:14 +0000 |
commit | c34b551c0348332e6d36cc4685db7b4d7a39ca9d (patch) | |
tree | 628b0f638c4ec5b37cffd51537e14144c1a448e6 /test | |
parent | 58f269d070fb404f7e78ee7153a01462ab87bdb9 (diff) |
merge revision(s) 33542,33543: [Backport #6200]
* parse.y (parser_nextc): set encoding for the buffer of ripper.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@35128 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ripper/test_scanner_events.rb | 4 |
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 |