zeek/doc/script-reference/assert_1.zeek
Tim Wojtulewicz ded98cd373 Copy docs into Zeek repo directly
This is based on commit 2731def9159247e6da8a3191783c89683363689c from the
zeek-docs repo.
2025-09-26 02:58:29 +00: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() };
}