Skip to content

Commit

Permalink
test(spdx-utils): Compare strings to not rely on semantic equality
Browse files Browse the repository at this point in the history
Be extra sure that the actual string representation becomes simpler.

Signed-off-by: Sebastian Schuberth <[email protected]>
  • Loading branch information
sschuberth committed Dec 18, 2024
1 parent 5d534ad commit 419f36e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils/spdx/src/test/kotlin/SpdxCompoundExpressionTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ class SpdxCompoundExpressionTest : WordSpec({
)
)

expression.simplify() shouldBe SpdxLicenseIdExpression("MIT")
// Compare string representations to not rely on semantic equality.
expression.simplify().toString() shouldBe "MIT"
}
}
})

0 comments on commit 419f36e

Please sign in to comment.