[Groonga-commit] droonga/fluent-plugin-droonga at 7b18b3c [master] test: group table type tests

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Apr 11 16:41:00 JST 2014


Kouhei Sutou	2014-04-11 16:41:00 +0900 (Fri, 11 Apr 2014)

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

  Message:
    test: group table type tests

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

  Modified: test/unit/catalog/test_schema.rb (+12 -4)
===================================================================
--- test/unit/catalog/test_schema.rb    2014-04-11 16:39:15 +0900 (a25595b)
+++ test/unit/catalog/test_schema.rb    2014-04-11 16:41:00 +0900 (04af9ac)
@@ -100,10 +100,18 @@ class CatalogSchemaTest < Test::Unit::TestCase
                                   {}).name)
       end
 
-      def test_type_default
-        assert_equal("Hash",
-                     create_table("table_name",
-                                  {}).type)
+      class TypeTest < self
+        def type(data)
+          create_table("table_name", data).type
+        end
+
+        def test_default
+          assert_equal("Hash", type({}))
+        end
+
+        def test_array
+          create_table("Array", type("Array"))
+        end
       end
 
       def test_type
-------------- next part --------------
HTML����������������������������...
Download 



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