zeek/testing/btest/language/named-set-ctors.zeek
Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

20 lines
432 B
Plaintext

# @TEST-EXEC: zeek -b %INPUT >out
# @TEST-EXEC: btest-diff out
type MyRec: record {
min: count &optional;
max: count;
};
type FooSet: set[count];
type FooSetRec: set[MyRec];
type FooSetComp: set[string, count];
global myset: FooSet = FooSet(1, 5, 3);
global mysetrec: FooSetRec = FooSetRec([$max=5], [$max=2]);
global mysetcomp: FooSetComp = FooSetComp(["test", 1], ["cool", 2]);
print myset;
print mysetrec;
print mysetcomp;