Merge remote-tracking branch 'origin/topic/johanna/string_vec_null'

* origin/topic/johanna/string_vec_null:
  Make join_string_vec work with vectors containing empty elements.

BIT-1495 #merged
This commit is contained in:
Robin Sommer 2015-10-23 13:12:42 -07:00
commit ecc09c11ca
3 changed files with 12 additions and 1 deletions

View file

@ -4,3 +4,4 @@ mytest
this__is__another__test
thisisanothertest
Test
...hi..there

View file

@ -10,6 +10,9 @@ event bro_init()
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_array(" * ", a);
print join_string_array("", a);
@ -18,4 +21,5 @@ event bro_init()
print join_string_vec(c, "__");
print join_string_vec(c, "");
print join_string_vec(d, "-");
print join_string_vec(e, ".");
}