Closed RomanLangrehr closed 9 years ago
An error recovery test would be useful too (we had something similar in final1):
Provoke an error and then assure the program still responds correctly to commands, by using print
command or so (in case of create
we could also make sure that the specified ant was not actually created).
We can also create a new issue for this if this is out of scope for this pull request.
That's a good idea, but I appreciate very much, creating a new issue for that.
By the way: ed847ed fixes all your issues.
I'd somewhere (not necessarily in this ^ method) add tests that test e.g. create (i.e. with just a trailing space)
I did this in wrongWhitespaceTest() for all argument commands (cause it's the same with the commands like escape or direction....)
Apart from some unnecessary lines which make things hard to read, I really like this! It's a very detailed test and should cover at least 95% of all cases!
If the input file doesn't matter, please don't reassign it before the test run
Fixed
This does not work, it should be \u00e4.
Fixed
Thanks. I think we can merge, can't we?
+1
Fixes #134 The tests should be complete.