[Groonga-commit] groonga/groonga-command at 47d4963 [fix-travis-ci-error] Indent

Back to archive index

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


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

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

  Message:
    Indent

  Modified files:
    test/test-parser.rb

  Modified: test/test-parser.rb (+18 -18)
===================================================================
--- test/test-parser.rb    2012-11-28 12:54:19 +0900 (491409a)
+++ test/test-parser.rb    2012-11-28 12:54:49 +0900 (41b89b3)
@@ -129,33 +129,33 @@ 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_header, command_line, ["_key"]],
-                           [:load_value, command_line, [1]],
-                           [:load_complete, command_line],
-                         ],
-                         @events)
-          end
-          end
-
-            def test_brace
-              command_line = "load --values '[{\"_key\": 1}]' --table IDs"
+            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_header, command_line, ["_key"]],
+                             [:load_value, command_line, [1]],
                              [:load_complete, command_line],
                            ],
                            @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