From c47cbdf97479cbe824952f134242dcde35b55b2c Mon Sep 17 00:00:00 2001 From: Kenneth Geisshirt Date: Wed, 31 Aug 2022 17:38:19 +0200 Subject: [PATCH] Try to reproduce https://github.com/realm/realm-js/issues/4844 --- test/test_parser.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/test_parser.cpp b/test/test_parser.cpp index 0c149a8b922..7584c8019ea 100644 --- a/test/test_parser.cpp +++ b/test/test_parser.cpp @@ -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;