Skip to content

Commit 054f446

Browse files
pombredannejdaguil
authored andcommitted
Improved test for harder to parse copyright with multiple dots
* such as Copyright (c) 1992-2002 by P.J. Plauger.
1 parent e765d94 commit 054f446

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

tests/cluecode/test_copyrights.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1245,14 +1245,21 @@ def test_copyright_inria_loss_of_holder_c(self):
12451245
]
12461246
check_detection(expected, test_file)
12471247

1248+
@expectedFailure
12481249
def test_copyright_java(self):
12491250
test_file = self.get_test_loc('copyrights/copyright_java-java.java')
12501251
expected = [
12511252
u'Copyright (c) 1992-2002 by P.J. Plauger.',
12521253
]
1253-
check_detection(expected, test_file,
1254-
expected_in_results=False,
1255-
results_in_expected=True)
1254+
check_detection(expected, test_file)
1255+
1256+
@expectedFailure
1257+
def test_copyright_java_passing(self):
1258+
test_file = self.get_test_loc('copyrights/copyright_java-java.java')
1259+
expected = [
1260+
u'Copyright (c) 1992-2002 by P.J.',
1261+
]
1262+
check_detection(expected, test_file)
12561263

12571264
def test_copyright_jdoe(self):
12581265
test_file = self.get_test_loc('copyrights/copyright_jdoe-copyright_c.c')

0 commit comments

Comments
 (0)