Skip to content

Commit 3c493e7

Browse files
committed
Fix spurious errors in SAM test files
Ensure field names are distinct. Negate F1 values so they differ from the F0 values. In aux.fail-f1.sam's F0 and F1, use values smaller than the minimum subnormal value representable so they underflow to 0 when evaluated as float. Fixes #722.
1 parent 144e32a commit 3c493e7

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

test/sam/failed/aux.fail-f1.sam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
@CO Validation of AUX
22
@CO Type f
3-
I 4 * 0 0 * * 0 0 CAT QQQ F0:f:1.275494351E-38 f0:f:1.275494351E-38 F1:f:3.502823466E+38 F1:f:-3.502823466E+38
3+
I 4 * 0 0 * * 0 0 CAT QQQ F0:f:1E-46 F1:f:-1E-46 F2:f:3.502823466E+38 F3:f:-3.502823466E+38

test/sam/passed/aux.pass-f.sam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ I 4 * 0 0 * * 0 0 CAT QQQ F0:f:-1 F1:f:0 F2:f:1 F3:f:9.9e-19 F4:f:-9.9E-19 F5:f:
44
I 4 * 0 0 * * 0 0 CAT QQQ F0:f:0 F1:f:-0 F2:f:+0
55
I 4 * 0 0 * * 0 0 CAT QQQ F0:f:09 F1:f:-009e+0 F2:f:+00009e-0
66
I 4 * 0 0 * * 0 0 CAT QQQ F0:f:00.1 F1:f:.1 F2:f:-00.1 F3:f:-.1
7-
I 4 * 0 0 * * 0 0 CAT QQQ F0:f:1.175494351E-38 f0:f:1.175494351E-38 F1:f:3.402823466E+38 F1:f:-3.402823466E+38
7+
I 4 * 0 0 * * 0 0 CAT QQQ F0:f:1.175494351E-38 F1:f:-1.175494351E-38 F2:f:3.402823466E+38 F3:f:-3.402823466E+38

0 commit comments

Comments
 (0)