[Groonga-commit] groonga/groonga-command [master] test: group load tests

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Nov 27 23:13:31 JST 2012


Kouhei Sutou	2012-11-27 23:13:31 +0900 (Tue, 27 Nov 2012)

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

  Log:
    test: group load tests

  Modified files:
    test/test-parser.rb

  Modified: test/test-parser.rb (+6 -2)
===================================================================
--- test/test-parser.rb    2012-11-27 23:12:26 +0900 (53f32f1)
+++ test/test-parser.rb    2012-11-27 23:13:31 +0900 (2d43327)
@@ -127,7 +127,8 @@ class ParserTest < Test::Unit::TestCase
           end
         end
 
-        def test_inline_bracket
+        class InlineTest < self
+        def test_bracket
           command_line = "load --values '[{\"_key\": 1}]' --table IDs"
           @parser << command_line
           assert_equal([], @events)
@@ -140,7 +141,7 @@ class ParserTest < Test::Unit::TestCase
                        @events)
         end
 
-        def test_inline_brace
+        def test_brace
           command_line = "load --values '[[\"_key\"], [1]]' --table IDs"
           @parser << command_line
           assert_equal([], @events)
@@ -153,7 +154,9 @@ class ParserTest < Test::Unit::TestCase
                        ],
                        @events)
         end
+        end
 
+        class MultiLineTest < self
         def test_bracket
           @parser << <<-EOC
 load --table Users
@@ -221,6 +224,7 @@ load --table Users
 EOC
           assert_equal(expected_events, @events)
         end
+        end
 
         class ErrorTest < self
           def test_location
-------------- next part --------------
HTML����������������������������...
Download 



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