));
print $test->failed("Test failed! Trying to overwrite existing instruction, which are global.");
}catch{
- $test->case("Passed fail on trying to overwrite existing instruction, which are global.");
+ $test->passed("Passed fail on trying to overwrite existing instruction, which are global.");
}
$test-> nextCase();
+
+ ###
+ # List entry with non reserved word instruction.
+ ###
+ $test->case("List entry with non word instructions.",'4');
+ my $list_parser = CNFParser->new()->parse(undef,q(<<list$$<20.05$>Spend in supermarket.>>));
+ my @list = $list_parser -> list('list');
+ my $instruction = $list[0];
+ $test -> isDefined("\$instruction", $instruction);
+ $test -> evaluate('$instruction.ins == "20.05$"','20.05$',$instruction->{ins});
+ $test -> evaluate('$instruction.val == "Spend in supermarket."','Spend in supermarket.',$instruction->{val});
+ my $anon = $list_parser->anon('list01');
+ $test -> isZeroOrEqual("\$anon", $instruction);
+ #
+ $test-> nextCase();
+ #
+
+
#
$test -> done();
#