zeek/testing/btest/bifs/strip.zeek
Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

18 lines
313 B
Plaintext

#
# @TEST-EXEC: zeek -b %INPUT >out
# @TEST-EXEC: btest-diff out
event zeek_init()
{
local a = " this is a test ";
local b = "";
local c = " ";
print fmt("*%s*", a);
print fmt("*%s*", strip(a));
print fmt("*%s*", b);
print fmt("*%s*", strip(b));
print fmt("*%s*", c);
print fmt("*%s*", strip(c));
}