Skip to content

Commit

Permalink
Fix spurious errors in SAM test files
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jmarshall committed May 2, 2023
1 parent 144e32a commit 3c493e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/sam/failed/aux.fail-f1.sam
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
@CO Validation of AUX
@CO Type f
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
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
2 changes: 1 addition & 1 deletion test/sam/passed/aux.pass-f.sam
Original file line number Diff line number Diff line change
Expand Up @@ -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:
I 4 * 0 0 * * 0 0 CAT QQQ F0:f:0 F1:f:-0 F2:f:+0
I 4 * 0 0 * * 0 0 CAT QQQ F0:f:09 F1:f:-009e+0 F2:f:+00009e-0
I 4 * 0 0 * * 0 0 CAT QQQ F0:f:00.1 F1:f:.1 F2:f:-00.1 F3:f:-.1
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
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 comments on commit 3c493e7

Please sign in to comment.