diff --git a/tests/Kernel/Containers/array_test.cpp b/tests/Kernel/Containers/array_test.cpp index 3e32fe6a2..deb5f7b4c 100644 --- a/tests/Kernel/Containers/array_test.cpp +++ b/tests/Kernel/Containers/array_test.cpp @@ -101,3 +101,14 @@ TEST_CASE ("test contains") { CHECK_EQ (contains (2, five_elem), true); CHECK_EQ (contains (3, five_elem), true); } + +TEST_CASE ("array of string") { + auto arr= array (); + arr << "Hello" + << "1" + << "2" + << "3"; + CHECK (contains (string ("Hello"), arr)); + arr << "】"; + CHECK (contains (string ("】"), arr)); +}