mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 02:28:21 +00:00
Add conversion between set and vector using 'as' keyword
This commit is contained in:
parent
59f7b26b51
commit
af9e852c28
8 changed files with 157 additions and 0 deletions
25
testing/btest/Baseline/language.vector-set-conversions/out
Normal file
25
testing/btest/Baseline/language.vector-set-conversions/out
Normal file
|
@ -0,0 +1,25 @@
|
|||
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
|
||||
vector to set
|
||||
[1, 1, 1, 2, 2, 3, 3, 4]
|
||||
{
|
||||
4,
|
||||
2,
|
||||
3,
|
||||
1
|
||||
}
|
||||
|
||||
set to vector (count)
|
||||
{
|
||||
4,
|
||||
2,
|
||||
3,
|
||||
1
|
||||
}
|
||||
[4, 2, 3, 1]
|
||||
|
||||
set to vector (port)
|
||||
{
|
||||
23/tcp,
|
||||
21/tcp
|
||||
}
|
||||
[23/tcp, 21/tcp]
|
Loading…
Add table
Add a link
Reference in a new issue