Navigation Menu

Skip to content

Commit

Permalink
test: follow Groonga 5.0.8 change
Browse files Browse the repository at this point in the history
Temporary table can have zero or more columns since Groonga 5.0.8.
  • Loading branch information
kou committed Oct 6, 2015
1 parent 97344e9 commit cab6848
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions test/test-table.rb
Expand Up @@ -46,17 +46,15 @@ def test_define_column

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
Expand Down

0 comments on commit cab6848

Please sign in to comment.