Skip to content

Commit

Permalink
Improve test against all copyright prefixes
Browse files Browse the repository at this point in the history
Signed-off-by: Carmen Bianca BAKKER <carmenbianca@fsfe.org>
  • Loading branch information
carmenbianca committed Jul 23, 2024
1 parent c7caaea commit 4dd63e6
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions tests/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,15 @@ def test_extract_copyright_variations():
"""There are multiple ways to declare copyright. All should be detected."""
text = cleandoc(
"""
SPDX-FileCopyrightText: 2019 Jane Doe
SPDX-FileCopyrightText: © 2019 Jane Doe
© 2019 Jane Doe
Copyright © 2019 Jane Doe
Copyright 2019 Jane Doe
Copyright (C) 2019 Jane Doe
SPDX-FileCopyrightText: 2019 spdx
SPDX-FileCopyrightText: (C) 2019 spdx-c
SPDX-FileCopyrightText: © 2019 spdx-symbol
SPDX-FileCopyrightText: Copyright (C) 2019 spdx-string-c
SPDX-FileCopyrightText: Copyright © 2019 spdx-string-symbol
Copyright 2019 string
Copyright (C) 2019 string-c
Copyright © 2019 string-symbol
© 2019 symbol
"""
)

Expand Down

0 comments on commit 4dd63e6

Please sign in to comment.