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

typename(table()) apparently always resulted in a set[] type being rendered. Make the yield type of an unspecified table ANY so that type->IsSet() ends up false. While at it, also render unspecified types as table(), set() and vector() rather than vector of void, set[] or table[] of any which IMO should help to figure out what's going.
7 lines
267 B
Text
7 lines
267 B
Text
# @TEST-DOC: Test representation of unspecified table, set and vector
|
|
# @TEST-EXEC: zeek -b %INPUT >output
|
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-remove-abspath btest-diff output
|
|
|
|
print type_name(set());
|
|
print type_name(table());
|
|
print type_name(vector());
|