diff --git a/utils/spdx/src/test/kotlin/SpdxCompoundExpressionTest.kt b/utils/spdx/src/test/kotlin/SpdxCompoundExpressionTest.kt index 951fa3d05bcdd..fd726f789b30e 100644 --- a/utils/spdx/src/test/kotlin/SpdxCompoundExpressionTest.kt +++ b/utils/spdx/src/test/kotlin/SpdxCompoundExpressionTest.kt @@ -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" } } })