mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2025-12-06 16:57:04 +08:00
Non-ASCII characters now in random positions in test; test renamed.
This commit is contained in:
parent
60c0a0bf15
commit
b70a9e7a61
@ -352,10 +352,10 @@ TEST_CASE("Functor cast")
|
||||
CHECK(d == 3 * 6);
|
||||
}
|
||||
|
||||
TEST_CASE("BOM at beginning of string")
|
||||
TEST_CASE("Non-ASCII characters in string")
|
||||
{
|
||||
chaiscript::ChaiScript_Basic chai(create_chaiscript_stdlib(),create_chaiscript_parser());
|
||||
CHECK_THROWS_AS(chai.eval<std::string>("\xef\xbb\xbfprint \"Hello World\""), chaiscript::exception::eval_error);
|
||||
CHECK_THROWS_AS(chai.eval<std::string>("prin\xeft \"Hello World\""), chaiscript::exception::eval_error);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user