[Groonga-commit] groonga/groonga-command at f28b29f [fix-travis-ci-error] Fix inverted name

Back to archive index

Kouhei Sutou null+****@clear*****
Wed Jan 13 17:19:17 JST 2016


Kouhei Sutou	2012-11-28 12:54:19 +0900 (Wed, 28 Nov 2012)

  New Revision: f28b29fc4a2b3be626064037d92731f4435c1600
  https://github.com/groonga/groonga-command/commit/f28b29fc4a2b3be626064037d92731f4435c1600

  Message:
    Fix inverted name

  Modified files:
    test/test-parser.rb

  Modified: test/test-parser.rb (+15 -15)
===================================================================
--- test/test-parser.rb    2012-11-28 12:53:42 +0900 (2887389)
+++ test/test-parser.rb    2012-11-28 12:54:19 +0900 (491409a)
@@ -129,21 +129,7 @@ class ParserTest < Test::Unit::TestCase
 
         class InlineTest < self
           class BracketTest < self
-            def test_bracket
-              command_line = "load --values '[{\"_key\": 1}]' --table IDs"
-              @parser << command_line
-              assert_equal([], @events)
-              @parser << "\n"
-              assert_equal([
-                             [:load_start, command_line],
-                             [:load_value, command_line, {"_key" => 1}],
-                             [:load_complete, command_line],
-                           ],
-                           @events)
-            end
-          end
-
-          def test_brace
+          def test_bracket
             command_line = "load --values '[[\"_key\"], [1]]' --table IDs"
             @parser << command_line
             assert_equal([], @events)
@@ -156,6 +142,20 @@ class ParserTest < Test::Unit::TestCase
                          ],
                          @events)
           end
+          end
+
+            def test_brace
+              command_line = "load --values '[{\"_key\": 1}]' --table IDs"
+              @parser << command_line
+              assert_equal([], @events)
+              @parser << "\n"
+              assert_equal([
+                             [:load_start, command_line],
+                             [:load_value, command_line, {"_key" => 1}],
+                             [:load_complete, command_line],
+                           ],
+                           @events)
+            end
         end
 
         class MultiLineTest < self
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index