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

ruby-changes:45383

From: nobu <ko1@a...>
Date: Sun, 29 Jan 2017 21:53:28 +0900 (JST)
Subject: [ruby-changes:45383] nobu:r57456 (trunk): test for immature statement

nobu	2017-01-29 21:53:24 +0900 (Sun, 29 Jan 2017)

  New Revision: 57456

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=57456

  Log:
    test for immature statement

  Modified files:
    trunk/test/irb/test_ruby-lex.rb
Index: test/irb/test_ruby-lex.rb
===================================================================
--- test/irb/test_ruby-lex.rb	(revision 57455)
+++ test/irb/test_ruby-lex.rb	(revision 57456)
@@ -35,6 +35,11 @@ module TestIRB https://github.com/ruby/ruby/blob/trunk/test/irb/test_ruby-lex.rb#L35
                    result)
     end
 
+    def test_immature_statement
+      src = "if false\n"
+      assert_equal([[src, 1]], top_level_statement(src))
+    end
+
     def top_level_statement(lines)
       input = InputLines.new(lines, "r")
       scanned = []

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

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