Skip to content

Commit 2c4529a

Browse files
committed
make edge case tests more clearly edge cases
1 parent 71ce5c4 commit 2c4529a

2 files changed

Lines changed: 177 additions & 158 deletions

File tree

test/elm/aggregate/data.cql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,18 @@ define longs_at_min_value: Sum({-1L,-2L,-9223372036854775805L}) // -922337203685
1717
define longs_below_min_value: Sum({-1L,-2L,-9223372036854775806L}) //-9223372036854775809
1818
define decimals: Sum({1.1,2.2,3.3,4.4,5.5})
1919
define decimals_at_max_value: Sum({99999999999999999999.99999999})
20-
define decimals_above_max_value: Sum({99999999999999999999.99999999, 99999999999999999999.99999999})
20+
define decimals_above_max_value: Sum({99999999999999999999.99999999, 0.00000001})
2121
define decimals_at_min_value: Sum({-99999999999999999999.99999999})
22-
define decimals_below_min_value: Sum({-99999999999999999999.99999999, -99999999999999999999.99999999})
22+
define decimals_below_min_value: Sum({-99999999999999999999.99999999, -0.00000001})
2323
define quantities: Sum({1 'ml',2 'ml',3 'ml',4 'ml',5 'ml'})
2424
// Max/Min-valued quantities are described using the "maximum" and "minimum" operators
2525
// to avoid the translator rounding them to +/-1.0e20, which is not a legal Decimal
2626
define MaxValueMLQuantity: Quantity { value: maximum Decimal, unit: 'ml' }
2727
define MinValueMLQuantity: Quantity { value: minimum Decimal, unit: 'ml' }
2828
define quantities_at_max_value: Sum({MaxValueMLQuantity})
29-
define quantities_above_max_value: Sum({MaxValueMLQuantity, MaxValueMLQuantity})
29+
define quantities_above_max_value: Sum({MaxValueMLQuantity, 0.00000001'ml' })
3030
define quantities_at_min_value: Sum({MinValueMLQuantity})
31-
define quantities_below_min_value: Sum({MinValueMLQuantity, MinValueMLQuantity})
31+
define quantities_below_min_value: Sum({MinValueMLQuantity, -0.00000001'ml'})
3232
define has_null: Sum({1,null,null,null,2})
3333
define has_null_q: Sum({1 'ml',null,null,null,2 'ml'})
3434
define unmatched_units_q: Min({1 'ml',2 'm',3 'ml',4 'ml',5 'ml',0 'ml'})

0 commit comments

Comments
 (0)