mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 14:08:20 +00:00
TableVal: Propagate &ordered through copy()
Copying an &ordered table or set would result in a copy that is not ordered. This seems rather surprising behavior, so propagate the &ordered attribute. Closes #2793
This commit is contained in:
parent
3de785114b
commit
754831d7b0
4 changed files with 71 additions and 1 deletions
25
testing/btest/Baseline/language.set-iteration/out
Normal file
25
testing/btest/Baseline/language.set-iteration/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.
|
||||
sset
|
||||
2
|
||||
3
|
||||
1
|
||||
4
|
||||
5
|
||||
copy(sset)
|
||||
3
|
||||
2
|
||||
1
|
||||
4
|
||||
5
|
||||
ordered_sset
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
copy(ordered_sset)
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
Loading…
Add table
Add a link
Reference in a new issue