More complete tokenizer
This commit is contained in:
@@ -26,5 +26,7 @@ ok( PerlRPG::Script::IsString(5)==0, "'5' is not a string");
|
||||
ok( EvalString("\"[TestVar]\"") eq '3', "\"[TestVar]\" is 3");
|
||||
ok( EvalString("3 + 3") == 6, "\"3 + 3\" == 6");
|
||||
ok( EvalString("lc('FoO') . uc('FoO')") eq 'fooFOO', "String function test");
|
||||
SetGameVar("TestVar", "\"FoO\"");
|
||||
ok( EvalString("uc(\" [TestVar] \")") eq ' FOO ', "Complex string function test");
|
||||
|
||||
done_testing();
|
||||
|
||||
Reference in New Issue
Block a user