Skip to content

Commit f99c968

Browse files
authored
Merge pull request #433 from nexB/380-incorrect-copyright-detected
#380 Test to ensure 'Byten ( c ) Exactly' is not detected as a copyright statement
2 parents 275b251 + 7e7ccbd commit f99c968

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/cluecode/test_copyrights.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4001,3 +4001,8 @@ def test_copyright_with_sign_year_noun_junk_auth_noun_and_auth(self):
40014001
test_lines = [u'Copyright (c) 2007-2010 the original author or authors.']
40024002
expected = [u'Copyright (c) 2007-2010 the original author or authors.']
40034003
check_detection(expected, test_lines)
4004+
4005+
def test_copyright_byten_c_exactly(self):
4006+
test_lines = [u'... don’t fit into your fixed-size buffer.\nByten ( c )\nExactly n bytes. If the']
4007+
expected = []
4008+
check_detection(expected, test_lines)

0 commit comments

Comments
 (0)