[Groonga-commit] droonga/fluent-plugin-droonga at 5cc58e1 [master] schema: Add tests for reader of ColumnIndexOptions

Back to archive index

Yoji Shidara null+****@clear*****
Tue Feb 18 16:13:43 JST 2014


Yoji Shidara	2014-02-18 16:13:43 +0900 (Tue, 18 Feb 2014)

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

  Message:
    schema: Add tests for reader of ColumnIndexOptions

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

  Modified: test/unit/catalog/test_schema.rb (+20 -0)
===================================================================
--- test/unit/catalog/test_schema.rb    2014-02-18 16:04:50 +0900 (3d99d62)
+++ test/unit/catalog/test_schema.rb    2014-02-18 16:13:43 +0900 (e5361e0)
@@ -151,5 +151,25 @@ class CatalogSchemaTest < Test::Unit::TestCase
                                    }).value_type)
       end
     end
+
+    class ColumnIndexOptionsTest < self
+      def create_options(data)
+        Droonga::Catalog::Schema::ColumnIndexOptions.new(data)
+      end
+
+      def test_section
+        assert_equal(true,
+                     create_options({
+                                      "section" => true
+                                    }).section)
+      end
+
+      def test_weight
+        assert_equal(true,
+                     create_options({
+                                      "weight" => true
+                                    }).weight)
+      end
+    end
   end
 end
-------------- next part --------------
HTML����������������������������...
Download 



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