[前][次][番号順一覧][スレッド一覧]

ruby-changes:21494

From: naruse <ko1@a...>
Date: Fri, 28 Oct 2011 12:11:18 +0900 (JST)
Subject: [ruby-changes:21494] naruse:r33543 (trunk): A test for r33542.

naruse	2011-10-28 12:11:06 +0900 (Fri, 28 Oct 2011)

  New Revision: 33543

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=33543

  Log:
    A test for r33542.

  Modified files:
    trunk/test/ripper/test_scanner_events.rb

Index: test/ripper/test_scanner_events.rb
===================================================================
--- test/ripper/test_scanner_events.rb	(revision 33542)
+++ test/ripper/test_scanner_events.rb	(revision 33543)
@@ -83,6 +83,10 @@
                   [[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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]