Add small test changes without unnecessary |...|

This commit is contained in:
Evan Typanski 2024-09-17 08:59:45 -04:00
parent 887611592a
commit 3ab16e7adc
2 changed files with 4 additions and 4 deletions

View file

@ -7,13 +7,13 @@ Expr: 18446744073709551612
Signed Expr: 4 Signed Expr: 4
Double -1.23: 1.230000 Double -1.23: 1.230000
Enum ENUM3: 2 Enum ENUM3: 2
Enum in record: 2 Enum in record: 2 2
File 21.000000 File 21.000000
Function add_interface: 2 Function add_interface: 2
Integer -10: 10 Integer -10: 10
Interval -5.0 secs: 5.000000 Interval -5.0 secs: 5.000000
Port 80/tcp: 65616 Port 80/tcp: 65616
Port in record: 65616 Port in record: 65616 65616
Record [i=10, j=<uninitialized>, k=<uninitialized>]: 3 Record [i=10, j=<uninitialized>, k=<uninitialized>]: 3
Set: 3 Set: 3
String 'Hello': 5 String 'Hello': 5

View file

@ -91,7 +91,7 @@ print fmt("Double %s: %f", d, |d|);
print fmt("Enum %s: %d", ENUM3, |ENUM3|); print fmt("Enum %s: %d", ENUM3, |ENUM3|);
# Within a record, enum sizeof should still be ok # 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. # Size of file: returns current file size.
# Note that this is a double so that file sizes >> 4GB # 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|); print fmt("Port %s: %d", p, |p|);
# Within a record, port sizeof should still be ok # 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) # Size of record: returns number of fields (assigned + unassigned)
print fmt("Record %s: %d", r, |r|); print fmt("Record %s: %d", r, |r|);