mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2025-12-06 16:57:04 +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\"; };");
|
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);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user