Commit Graph

7 Commits

Author SHA1 Message Date
TomyLobo
fa82482823 Added a new test for get[Padded]Slice and renamed testHangingQuote to testUnmatchedQuote. 2011-09-20 03:41:07 +02:00
TomyLobo
67918f171b Internal restructuring of CommandContext
- getJoinedStrings(n) will now return literally everything after the first space following the (n-1)th argument. Mixing flags in after that is undefined
- What was in args before is now a List named parsedArgs, which also no longer contains the command, which was split off into a separate field.
- get[Padded]Slice now operates on the unparsed args with flags and all, allowing whoever uses it (script commands) to obtain a more low-level input.
- Added a test for the exactness of getJoinedStrings and adjusted an existing test to the new old behaviour.
2011-09-20 03:25:35 +02:00
TomyLobo
2d86b1b40d Fixed and cleaned up CommandContext.
- Removed all the inefficient removePortionOfArray stuff and replaced it by ArrayLists that accumulate content instead.
- Added new tests
- Swapped the arguments to assertEquals everywhere. First argument is "expected".
- Fixed warnings in the test case
- I put my original flag parser back and added support for putting flags anywhere. Looks and works better than that undocumented mindfuck zml put there.
2011-09-19 23:14:49 +02:00
TomyLobo
a4618fa3c0 It just a test case but meh... 2011-09-19 09:08:10 +02:00
TomyLobo
16a4e5ccb3 Added/fixed some copyright notices. 2011-09-19 08:24:21 +02:00
zml2008
56fd654eed Fixed bug with unclosed quotes 2011-09-17 21:10:55 -07:00
zml2008
75e843b965 Some small improvements to value flags, and a unit test. 2011-09-14 17:59:18 -07:00