Add failing tests

This commit is contained in:
Eric Bottard
2014-02-07 12:47:10 +01:00
parent ecb747f849
commit 0ca3be8ca2
2 changed files with 77 additions and 1 deletions

View File

@@ -434,6 +434,10 @@ public class SimpleParser implements Parser {
return result;
}
/**
* See whether 'buffer' could be an invocation of 'command', and if so, return the remaining part of the buffer.
* @param strictMatching true if ALL words of 'command' need to be matched
*/
static String isMatch(final String buffer, final String command, final boolean strictMatching) {
if ("".equals(buffer.trim())) {
return "";