diff --git a/unittests/compiled_tests.cpp b/unittests/compiled_tests.cpp index dc4a1f24..18cf9202 100644 --- a/unittests/compiled_tests.cpp +++ b/unittests/compiled_tests.cpp @@ -360,9 +360,7 @@ TEST_CASE("BOM at beginning of string") chai.eval("def func() { return \"Hello World\"; };"); - std::string result = chai.eval("\xef\xbb\xbf(func())"); - - CHECK(result.compare(std::string("Hello World")) == 0); + CHECK(chai.eval("\xef\xbb\xbf(func())") == "Hello World"); }