Simplify BOM test.

This commit is contained in:
Alek Mosingiewicz 2018-05-10 18:40:56 +02:00
parent 1d782338c9
commit 1e8f7f9fa5

View File

@ -360,9 +360,7 @@ TEST_CASE("BOM at beginning of string")
chai.eval("def func() { return \"Hello World\"; };"); chai.eval("def func() { return \"Hello World\"; };");
std::string result = chai.eval<std::string>("\xef\xbb\xbf(func())"); CHECK(chai.eval<std::string>("\xef\xbb\xbf(func())") == "Hello World");
CHECK(result.compare(std::string("Hello World")) == 0);
} }