assertEquals(2, pattern.match("\\\n", 0, 2));
assertEquals(6, pattern.match("\\ \t\r\n", 0, 6));
}
public void testInlineWhitespaces() {
Pattern pattern = Indentation.INLINE_WHITESPACES;
assertEquals(MISMATCH, pattern.match("", 0, 0));
assertEquals(MISMATCH, pattern.match("a", 0, 1));
assertEquals(MISMATCH, pattern.match("\n", 0, 1));
assertEquals(1, pattern.match(" ", 0, 1));
assertEquals(2, pattern.match(" ", 0, 2));
assertEquals(4, pattern.match(" \t\r", 0, 4));
}