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

14 lines
208 B
Plaintext

#
# @TEST-EXEC: zeek -b %INPUT >out
# @TEST-EXEC: btest-diff out
event zeek_init()
{
local a = "this";
local b = "testing";
print strcmp(a, b) > 0;
print strcmp(b, a) < 0;
print strcmp(a, a) == 0;
}