Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
kneth committed Aug 31, 2022
1 parent bedcd4f commit c47cbdf
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/test_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4113,6 +4113,16 @@ TEST(Parser_Object)
}


TEST(Parser_Contains)
{
Group g;
TableRef table = g.add_table("table");
auto str_col_key = table->add_column(type_String, "str", true);
table->create_object().set(str_col_key, "Here is a Unicorn 🦄 today");
verify_query(test_context, table, "str CONTAINS 'unicorn 🦄 today'", 0);
verify_query(test_context, table, "str CONTAINS[c] 'unicorn 🦄 today'", 1);
}

TEST(Parser_OddColumnNames)
{
Group g;
Expand Down

0 comments on commit c47cbdf

Please sign in to comment.