void testParagraphCharacter() throws IOException {
reg.setPattern("end of text$");
assertTrue("paragraph character", !reg.matches("end of text\u2029"));
}
public void testLineSeparatorCharacter() throws IOException {
reg.setPattern("end of text$");
assertTrue("line-separator character", !reg.matches("end of text\u2028"));
void testStandaloneCR() throws IOException {
reg.setPattern("end of text$");
assertTrue("standalone CR", !reg.matches("end of text\r"));
}
public void testWindowsLineSeparator() throws IOException {
reg.setPattern("end of text$");
assertTrue("Windows line separator", !reg.matches("end of text\r\n"));
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/util/regexp/RegexpMatcherTest.java
|
|
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/util/regexp/RegexpMatcherTest.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | void testParagraphCharacter() throws IOException {↵ | | 1 | void testStandaloneCR() 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("standalone CR", !reg.matches("end of text\r"));↵
|
4 | }↵ | | 4 | }↵
|
|
5 | public void testLineSeparatorCharacter() throws IOException {↵ | | 5 | public void testWindowsLineSeparator() 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("Windows line separator", !reg.matches("end of text\r\n"));↵
|
8 | | | 8 |
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | |
Number of node comparisons | 0 |