Skip to content

Commit 25ac147

Browse files
committed
#191: Added test for incorrect detection.
* Marked as failing for now. * this is a snippet of an HTML Apache 2.0 license. No copyright should be detected there
1 parent fef5dff commit 25ac147

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<br> Licensor for the purpose of discussing and improving the Work, but<br> excluding communication that is conspicuously marked or otherwise<br> designated in writing by the copyright owner as "Not a Contribution."<br><br> "Contributor" shall mean Licensor and any individual or Legal Entity<br> on behalf of whom a Contribution has been received by Licensor and<br> subsequently incorporated within the Work.<br><br> 2. Grant of Copyright License. Subject to the terms and conditions of<br> this License, each Contributor hereby grants to You a perpetual,<br> worldwide, non-exclusive, no-charge, royalty-free, irrevocable<br> copyright license to reproduce, prepare Derivative Works of,<br>

tests/cluecode/test_copyrights.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3959,3 +3959,9 @@ def test_copyright_rimini(self):
39593959
test_file = self.get_test_loc('copyrights/rimini.c')
39603960
expected = [u'(c) Copyright 2000 Paolo Scaffardi, AIRVENT SAM s.p.a - RIMINI(ITALY), arsenio@tin.it']
39613961
check_detection(expected, test_file)
3962+
3963+
@expectedFailure('Thsi should not detect a copyright see #191')
3964+
def test_copyright_should_not_detected_in_apache_html(self):
3965+
test_file = self.get_test_loc('copyrights/copyright_apache_in_html.html')
3966+
expected = []
3967+
check_detection(expected, test_file)

0 commit comments

Comments
 (0)