Skip to content

Commit

Permalink
add some more inversed tests and adjust a doubled test
Browse files Browse the repository at this point in the history
  • Loading branch information
ymo-sci committed Aug 14, 2024
1 parent 430809b commit 432d9bc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/test/kotlin/sirius/kernel/commons/ValueTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,11 @@ class ValueTest {
assertTrue(Value.of("A").ignore("B", "C").isFilled)
assertTrue(Value.of("0").ignore("0").isEmptyString)
assertTrue(Value.of("0").ignore(BigDecimal.ZERO).isFilled)
assertTrue(Value.of("0").ignore("0").isEmptyString)
assertTrue(Value.of("1").ignore("0").isFilled)
assertTrue(Value.of(BigDecimal.ONE).ignore("1").isFilled)
assertTrue(Value.of(BigDecimal.ZERO).ignore(BigDecimal.ZERO).isEmptyString)
assertTrue(Value.of(BigDecimal.ZERO).ignore("0").isFilled)
assertTrue(Value.of(BigDecimal.valueOf(0)).ignore(BigDecimal.ZERO).isEmptyString)
assertTrue(Value.of(BigDecimal.valueOf(1)).ignore(BigDecimal.ZERO).isFilled)
}
}

0 comments on commit 432d9bc

Please sign in to comment.