From c8716318cdd50b7e1bfb791f44ee089772085585 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 | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/test_parser.cpp b/test/test_parser.cpp index 0c149a8b922..d48c57ab197 100644 --- a/test/test_parser.cpp +++ b/test/test_parser.cpp @@ -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;