mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 15:48:19 +00:00
23 lines
393 B
Text
23 lines
393 B
Text
#
|
|
# @TEST-EXEC: zeek -b %INPUT >out
|
|
# @TEST-EXEC: btest-diff out
|
|
|
|
event zeek_init()
|
|
{
|
|
print to_int("1");
|
|
print to_int("-1");
|
|
print to_int("4294967296");
|
|
print to_int("not an int");
|
|
|
|
local a: double = 3.14;
|
|
print double_to_int(a);
|
|
|
|
local b: double = 3.9;
|
|
print double_to_int(b);
|
|
|
|
local c: double = -3.14;
|
|
print double_to_int(c);
|
|
|
|
local d: double = -3.9;
|
|
print double_to_int(d);
|
|
}
|