zeek/doc/script-reference/assert_1.zeek
Tim Wojtulewicz adce4e604a Copy docs into Zeek repo directly
This is based on commit 99e6942efec5feff50523f6b2a1f5868f19ab638 from the
zeek-docs repo.
2025-10-13 11:06:48 -07:00

18 lines
301 B
Text

event test_1() {
assert 3 == 3;
local x = 37;
assert x > 40;
print "not reached";
}
event test_2() {
assert 2 == 2;
local x = 37;
assert x > 40, fmt("%s is not greater than 40", x);
print "not reached";
}
event zeek_init() {
schedule 0.01sec { test_1() };
schedule 0.02sec { test_2() };
}