zeek/testing/btest/bifs/string_fill.bro
2012-05-23 16:34:03 -05:00

16 lines
291 B
Text

#
# @TEST-EXEC: bro %INPUT >out
# @TEST-EXEC: btest-diff out
event bro_init()
{
local a = "test ";
local b = string_fill(1, a);
local c = string_fill(2, a);
local d = string_fill(10, a);
print fmt("*%s* %d", b, |b|);
print fmt("*%s* %d", c, |c|);
print fmt("*%s* %d", d, |d|);
}