Support unicode as variables
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -62,4 +62,18 @@ end
|
||||
CHECK(variable->EvaluateInteger() == 2);
|
||||
delete script;
|
||||
}
|
||||
|
||||
TEST_CASE( "Able to use emoji", "[integration]" ) {
|
||||
Script* script = Script::Create(uR"(
|
||||
💩 = "LJ"
|
||||
)");
|
||||
REQUIRE(!script->Diagnostics -> HasErrors());
|
||||
script->Evaluate();
|
||||
REQUIRE(script -> HasVariable(uR"(💩)"));
|
||||
auto variable = script->GetVariable(uR"(💩)");
|
||||
REQUIRE(variable != nullptr);
|
||||
CHECK(*variable->EvaluateString() == u"LJ");
|
||||
delete script;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user