mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2025-12-06 08:46:53 +08:00
Simplify BOM test.
This commit is contained in:
parent
1d782338c9
commit
1e8f7f9fa5
@ -360,9 +360,7 @@ TEST_CASE("BOM at beginning of string")
|
||||
|
||||
chai.eval("def func() { return \"Hello World\"; };");
|
||||
|
||||
std::string result = chai.eval<std::string>("\xef\xbb\xbf(func())");
|
||||
|
||||
CHECK(result.compare(std::string("Hello World")) == 0);
|
||||
CHECK(chai.eval<std::string>("\xef\xbb\xbf(func())") == "Hello World");
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user