Skip to content

Commit

Permalink
update engine tests
Browse files Browse the repository at this point in the history
  • Loading branch information
antvaset committed Jun 17, 2024
1 parent 2ef3f45 commit ab77c10
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ void log() {
assertThat(value, is(nullValue()));

value = engine.expression(library, "Log1Base1").value();
assertThat((BigDecimal) value, comparesEqualTo(BigDecimal.valueOf(0d)));
assertThat(value, is(nullValue()));

value = engine.expression(library, "Log1Base2").value();
assertThat((BigDecimal) value, comparesEqualTo(BigDecimal.valueOf(0d)));
Expand Down Expand Up @@ -367,7 +367,7 @@ void maximum() {
assertThat(value, is(Long.MAX_VALUE));

value = engine.expression(library, "DecimalMaxValue").value();
assertEquals(0, ((BigDecimal) value).compareTo(new BigDecimal("9999999999999999999999999999.99999999")));
assertEquals(0, ((BigDecimal) value).compareTo(new BigDecimal("99999999999999999999.99999999")));

value = engine.expression(library, "DateTimeMaxValue").value();
assertTrue(EquivalentEvaluator.equivalent(value, new DateTime(BigDecimal.ZERO, 9999, 12, 31, 23, 59, 59, 999)));
Expand All @@ -389,7 +389,7 @@ void minimum() {
assertThat(value, is(Long.MIN_VALUE));

value = engine.expression(library, "DecimalMinValue").value();
assertEquals(0, ((BigDecimal) value).compareTo(new BigDecimal("-9999999999999999999999999999.99999999")));
assertEquals(0, ((BigDecimal) value).compareTo(new BigDecimal("-99999999999999999999.99999999")));

value = engine.expression(library, "DateTimeMinValue").value();
assertTrue(EquivalentEvaluator.equivalent(value, new DateTime(BigDecimal.ZERO, 1, 1, 1, 0, 0, 0, 0)));
Expand Down

0 comments on commit ab77c10

Please sign in to comment.