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 c871631
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/test_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4113,6 +4113,17 @@ 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 c871631

Please sign in to comment.