Navigation Menu

Skip to content

Commit

Permalink
test: group valueType to Groonga type test
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Apr 11, 2014
1 parent 7c180c9 commit cfcd575
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions test/unit/catalog/test_schema.rb
Expand Up @@ -216,12 +216,17 @@ def test_default
end
end

def test_value_type_groonga
assert_equal("Int64",
create_column("column_name",
{
"valueType" => "Integer"
}).value_type_groonga)
class ValueTypeGroonga < self
def value_type_groonga(type)
data = {
"valueType" => type,
}
create_column("column_name", data).value_type_groonga
end

def test_integer
assert_equal("Int64", value_type_groonga("Integer"))
end
end

def test_to_column_create_body
Expand Down

0 comments on commit cfcd575

Please sign in to comment.