@Test public void testEscapeInDoubleQuoted() { String[] args = parser.parse("a \" b \\\" \" c"); assertThat(args, arrayContaining("a", " b \" ", "c")); }
@Test public void testSingleQuoted() { String[] args = parser.parse("a ' b ' c"); assertThat(args, arrayContaining("a", " b ", "c")); }
@Test public void test() { String[] args = parser.parse("a b c"); assertThat(args, arrayContaining("a", "b", "c")); }