zeek/testing/btest/bifs/join_string.zeek
Jon Siwek 6ad7099f7e Merge remote-tracking branch 'origin/topic/robin/gh-239'
* origin/topic/robin/gh-239:
  Undo a change to btest.cfg from a recent commit
  Updating submodule.
  Fix zeek-wrapper
  Update for renaming BroControl to ZeekControl.
  Updating submodule.
  GH-239: Rename bro to zeek, bro-config to zeek-config, and bro-path-dev to zeek-path-dev.
2019-05-14 13:27:40 -07:00

21 lines
518 B
Text

#
# @TEST-EXEC: zeek -b %INPUT >out
# @TEST-EXEC: btest-diff out
event zeek_init()
{
local a: string_array = {
[1] = "this", [2] = "is", [3] = "a", [4] = "test"
};
local b: string_array = { [1] = "mytest" };
local c: string_vec = vector( "this", "is", "another", "test" );
local d: string_vec = vector( "Test" );
local e: string_vec = vector();
e[3] = "hi";
e[5] = "there";
print join_string_vec(c, "__");
print join_string_vec(c, "");
print join_string_vec(d, "-");
print join_string_vec(e, ".");
}