zeek/testing/btest/language/vector-of-interval-arithmetic.zeek
Jon Siwek 3b334bad56 GH-1159: Fix vector-of-interval multiplication/division arithmetic
Those operations done between a vector-of-interval and a
vector-of-arithmetic-type previously threw a runtime expression error
due to an incorrect coercion being used internally.
2020-09-14 16:12:20 -07:00

10 lines
200 B
Text

# @TEST-EXEC: zeek -b %INPUT >out
# @TEST-EXEC: btest-diff out
global v1 = vector(1.5, 3.0, 4.5);
global v2 = vector(3 sec, 1 min, 1 hr);
print v1 * v2;
print v2 * v1;
print v1 / v2;
print v2 / v1;