zeek/testing/btest/language/vector-unspecified.bro
Bernhard Amann b3bd509b3f Allow iterating over bif functions with result type vector of any.
This changes the internal type that is used to signal that a vector
is unspecified from any to void.

I tried to verify that the behavior of Bro is still the same. After
a lot of playing around, I think everything still should worl as before.

However, it might be good for someone to take a look at this.

addresses BIT-1144
2014-02-25 15:30:29 -08:00

11 lines
196 B
Text

# @TEST-EXEC: bro -b %INPUT >output 2>&1
# @TEST-EXEC: btest-diff output
# Test assignment behavior of unspecified vectors
local a = vector();
a[0] = 5;
a[1] = "Hi";
a[2] = 127.0.0.1;
print a;