mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00

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.
28 lines
848 B
Text
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)
|