These tests have greedy charsets
This commit is contained in:
parent
715646c5ee
commit
7367c46497
1 changed files with 2 additions and 2 deletions
|
@ -31,7 +31,7 @@ public class StringArgumentTypeTest {
|
|||
public void testParseWord_greedyCharset() throws Exception {
|
||||
final StringReader reader = mock(StringReader.class);
|
||||
when(reader.readUnquotedStringGreedy()).thenReturn("1+1=2");
|
||||
assertThat(word(false).parse(reader), equalTo("1+1=2"));
|
||||
assertThat(word(true).parse(reader), equalTo("1+1=2"));
|
||||
verify(reader).readUnquotedStringGreedy();
|
||||
}
|
||||
|
||||
|
@ -39,7 +39,7 @@ public class StringArgumentTypeTest {
|
|||
public void testParseString_greedyCharset() throws Exception {
|
||||
final StringReader reader = mock(StringReader.class);
|
||||
when(reader.readStringGreedy()).thenReturn("1+1=2 2+2=4");
|
||||
assertThat(string(false).parse(reader), equalTo("1+1=2 2+2=4"));
|
||||
assertThat(string(true).parse(reader), equalTo("1+1=2 2+2=4"));
|
||||
verify(reader).readStringGreedy();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue