Skip to content

Commit

Permalink
test(SpdxExpressionTest): Test parsing NONE and NOASSERTION
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
  • Loading branch information
sschuberth committed Oct 29, 2023
1 parent d9839fb commit 2d21bf2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions utils/spdx/src/test/kotlin/SpdxExpressionTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,17 @@ class SpdxExpressionTest : WordSpec({
}
}

"An SpdxExpression with SPDX constants" should {
"parse NONE correctly" {
SpdxExpression.parse(SpdxConstants.NONE, Strictness.ALLOW_CURRENT).toString() shouldBe SpdxConstants.NONE
}

"parse NOASSERTION correctly" {
SpdxExpression.parse(SpdxConstants.NOASSERTION, Strictness.ALLOW_CURRENT).toString() shouldBe
SpdxConstants.NOASSERTION
}
}

"The expression parser" should {
"work for deprecated license identifiers" {
assertSoftly {
Expand Down

0 comments on commit 2d21bf2

Please sign in to comment.