mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Add small test changes without unnecessary |...|
This commit is contained in:
parent
887611592a
commit
3ab16e7adc
2 changed files with 4 additions and 4 deletions
|
@ -7,13 +7,13 @@ Expr: 18446744073709551612
|
|||
Signed Expr: 4
|
||||
Double -1.23: 1.230000
|
||||
Enum ENUM3: 2
|
||||
Enum in record: 2
|
||||
Enum in record: 2 2
|
||||
File 21.000000
|
||||
Function add_interface: 2
|
||||
Integer -10: 10
|
||||
Interval -5.0 secs: 5.000000
|
||||
Port 80/tcp: 65616
|
||||
Port in record: 65616
|
||||
Port in record: 65616 65616
|
||||
Record [i=10, j=<uninitialized>, k=<uninitialized>]: 3
|
||||
Set: 3
|
||||
String 'Hello': 5
|
||||
|
|
|
@ -91,7 +91,7 @@ print fmt("Double %s: %f", d, |d|);
|
|||
print fmt("Enum %s: %d", ENUM3, |ENUM3|);
|
||||
|
||||
# Within a record, enum sizeof should still be ok
|
||||
print fmt("Enum in record: %d", |with_enum$e|);
|
||||
print fmt("Enum in record: %d %d", with_enum$e, |with_enum$e|);
|
||||
|
||||
# Size of file: returns current file size.
|
||||
# Note that this is a double so that file sizes >> 4GB
|
||||
|
@ -111,7 +111,7 @@ print fmt("Interval %s: %f", iv, |iv|);
|
|||
print fmt("Port %s: %d", p, |p|);
|
||||
|
||||
# Within a record, port sizeof should still be ok
|
||||
print fmt("Port in record: %d", |with_port$p|);
|
||||
print fmt("Port in record: %d %d", with_port$p, |with_port$p|);
|
||||
|
||||
# Size of record: returns number of fields (assigned + unassigned)
|
||||
print fmt("Record %s: %d", r, |r|);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue