mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
test case for v += e
This commit is contained in:
parent
016a164bb6
commit
81c63a0c65
1 changed files with 5 additions and 0 deletions
|
@ -163,5 +163,10 @@ event bro_init()
|
|||
test_case( "&& operator", v14[0] == F && v14[1] == F && v14[2] == T );
|
||||
test_case( "|| operator", v15[0] == T && v15[1] == F && v15[2] == T );
|
||||
|
||||
# Test += operator.
|
||||
local v16 = v6;
|
||||
v16 += 40;
|
||||
test_case( "+= operator", all_set(v16 == vector( 10, 20, 30, 40 )) );
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue