[Groonga-commit] droonga/fluent-plugin-droonga at cfcd575 [master] test: group valueType to Groonga type test

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Apr 11 16:36:19 JST 2014


Kouhei Sutou	2014-04-11 16:36:19 +0900 (Fri, 11 Apr 2014)

  New Revision: cfcd57560508cf4ed0049bbfbc877212ad7acca1
  https://github.com/droonga/fluent-plugin-droonga/commit/cfcd57560508cf4ed0049bbfbc877212ad7acca1

  Message:
    test: group valueType to Groonga type test

  Modified files:
    test/unit/catalog/test_schema.rb

  Modified: test/unit/catalog/test_schema.rb (+11 -6)
===================================================================
--- test/unit/catalog/test_schema.rb    2014-04-11 16:34:53 +0900 (f61aaf7)
+++ test/unit/catalog/test_schema.rb    2014-04-11 16:36:19 +0900 (4a00f7f)
@@ -216,12 +216,17 @@ class CatalogSchemaTest < Test::Unit::TestCase
         end
       end
 
-      def test_value_type_groonga
-        assert_equal("Int64",
-                     create_column("column_name",
-                                   {
-                                     "valueType" => "Integer"
-                                   }).value_type_groonga)
+      class ValueTypeGroonga < self
+        def value_type_groonga(type)
+          data = {
+            "valueType" => type,
+          }
+          create_column("column_name", data).value_type_groonga
+        end
+
+        def test_integer
+          assert_equal("Int64", value_type_groonga("Integer"))
+        end
       end
 
       def test_to_column_create_body
-------------- next part --------------
HTML����������������������������...
Download 



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