1 | void testParagraphCharacter() throws IOException {↵ | | 1 | void testNextLineCharacter() throws IOException {↵
|
2 | reg.setPattern("end of text$");↵ | | 2 | reg.setPattern("end of text$");↵
|
3 | assertTrue("paragraph character", !reg.matches("end of text\u2029"));↵ | | 3 | assertTrue("next-line character", !reg.matches("end of text\u0085"));↵
|
4 | }↵ | | 4 | }↵
|
|
5 | public void testLineSeparatorCharacter() throws IOException {↵ | | 5 | public void testStandaloneCR() throws IOException {↵
|
6 | reg.setPattern("end of text$");↵ | | 6 | reg.setPattern("end of text$");↵
|
7 | assertTrue("line-separator character", !reg.matches("end of text\u2028"));↵ | | 7 | assertTrue("standalone CR", !reg.matches("end of text\r"));↵
|
8 | }↵ | | 8 | }↵
|
|
9 | public void testNextLineCharacter() throws IOException {↵ | | 9 | public void testWindowsLineSeparator() throws IOException {↵
|
10 | reg.setPattern("end of text$");↵ | | 10 | reg.setPattern("end of text$");↵
|
11 | assertTrue("next-line character", !reg.matches("end of text\u0085"));↵ | | 11 | assertTrue("Windows line separator", !reg.matches("end of text\r\n"));↵
|
12 | | | 12 |
|