zeek/testing/btest/Baseline/language.interval/out
Jon Siwek 3256ac7c49 GH-219: fix |x| operator int overflow / floating point type inconsistency
When 'x' is an integral arithmetic expression, it's now coerced to
yield a signed integer before taking the absolute value of it to
prevent the common issue of unsigned integer overflow/wraparound for
values below zero.

Using a time or interval value/expression for 'x' now also yields a
time or interval, respective, from the |x| operation instead of
a double.
2019-01-22 16:42:40 -06:00

28 lines
848 B
Text

type inference (PASS)
type inference (PASS)
type inference (PASS)
optional space (PASS)
plural/singular interval are same (PASS)
different units with same numeric value (PASS)
compare different time units (PASS)
compare different time units (PASS)
compare different time units (PASS)
compare different time units (PASS)
compare different time units (PASS)
compare different time units (PASS)
compare different time units (PASS)
add different time units (PASS)
subtract different time units (PASS)
absolute value (PASS)
absolute value (PASS)
absolute value (PASS)
assignment operator (PASS)
assignment operator (PASS)
multiplication operator (PASS)
division operator (PASS)
division operator (PASS)
relative size of units (PASS)
relative size of units (PASS)
relative size of units (PASS)
relative size of units (PASS)
relative size of units (PASS)