[Groonga-commit] droonga/droonga-engine at 5c96005 [master] test: Add test for column_remove with index

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed Apr 23 14:08:34 JST 2014


YUKI Hiroshi	2014-04-23 14:08:34 +0900 (Wed, 23 Apr 2014)

  New Revision: 5c96005bc7ba7e60fa412f3acdb0ac5c48f82635
  https://github.com/droonga/droonga-engine/commit/5c96005bc7ba7e60fa412f3acdb0ac5c48f82635

  Message:
    test: Add test for column_remove with index

  Modified files:
    test/unit/plugins/groonga/test_column_remove.rb

  Modified: test/unit/plugins/groonga/test_column_remove.rb (+15 -0)
===================================================================
--- test/unit/plugins/groonga/test_column_remove.rb    2014-04-23 13:58:18 +0900 (8db4efd)
+++ test/unit/plugins/groonga/test_column_remove.rb    2014-04-23 14:08:34 +0900 (dc3b596)
@@ -80,4 +80,19 @@ class ColumnRemoveTest < GroongaHandlerTest
 table_create Books TABLE_HASH_KEY --key_type ShortText
     SCHEMA
   end
+
+  def test_remove_index
+    Groonga::Schema.define(:context => @context) do |schema|
+      schema.create_table("Books", :type => :hash)
+      schema.change_table("Books") do |table|
+        table.column("title", "ShortText", :type => :scalar)
+        table.index("Books", "title", :name => "entry_title")
+      end
+    end
+    process(:column_remove,
+            {"table" => "Books", "name" => "title"})
+    assert_equal(<<-SCHEMA, dump)
+table_create Books TABLE_HASH_KEY --key_type ShortText
+    SCHEMA
+  end
 end
-------------- next part --------------
HTML����������������������������...
Download 



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