[Groonga-commit] ranguba/rroonga at cab6848 [master] test: follow Groonga 5.0.8 change

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Oct 6 13:31:35 JST 2015


Kouhei Sutou	2015-10-06 13:31:35 +0900 (Tue, 06 Oct 2015)

  New Revision: cab68482599520d041ab2ec84307dde0024f122b
  https://github.com/ranguba/rroonga/commit/cab68482599520d041ab2ec84307dde0024f122b

  Message:
    test: follow Groonga 5.0.8 change
    
    Temporary table can have zero or more columns since Groonga 5.0.8.

  Modified files:
    test/test-table.rb

  Modified: test/test-table.rb (+4 -6)
===================================================================
--- test/test-table.rb    2015-10-06 13:16:56 +0900 (32a208d)
+++ test/test-table.rb    2015-10-06 13:31:35 +0900 (64e7d11)
@@ -46,17 +46,15 @@ class TableTest < Test::Unit::TestCase
 
   def test_temporary_table_define_column_default_persistent
     table = Groonga::Hash.create
-    assert_raise(Groonga::InvalidArgument) do
-      table.define_column("name", "ShortText")
-    end
+    column = table.define_column("name", "ShortText")
+    assert_equal([column.name], table.columns.collect(&:name))
   end
 
   def test_temporary_table_define_index_column_default_persistent
     bookmarks = Groonga::Hash.create(:name => "Bookmarks")
     terms = Groonga::Hash.create
-    assert_raise(Groonga::InvalidArgument) do
-      terms.define_index_column("url", bookmarks)
-    end
+    index_column = terms.define_index_column("url", bookmarks)
+    assert_equal([index_column.name], terms.columns.collect(&:name))
   end
 
   def test_define_column_default_persistent
-------------- next part --------------
HTML����������������������������...
Download 



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