Testing: Add new tests, and new ways of testing, for floating-point.
- Adds a pragma to see binary output of double values (not portable) - Print decimals that show more values, but in a portable way (lots of portability issues) - Expand the tests to test more double values Note: it is quite difficult to have 100% portable tests for floating point. The current situation works by not printing full precision, and working around several portability issues.
This commit is contained in:
parent
8e4b496d4a
commit
1ea1b13f38
11 changed files with 1161 additions and 78 deletions
|
|
@ -330,7 +330,7 @@ ERROR: node is still EOpNull!
|
|||
0:73 move second child to first child ( temp float)
|
||||
0:73 'g6' ( temp float)
|
||||
0:73 Constant:
|
||||
0:73 0.000005
|
||||
0:73 5.0000000000000e-06
|
||||
0:74 Sequence
|
||||
0:74 move second child to first child ( temp float)
|
||||
0:74 'g7' ( temp float)
|
||||
|
|
@ -739,7 +739,7 @@ ERROR: node is still EOpNull!
|
|||
0:73 move second child to first child ( temp float)
|
||||
0:73 'g6' ( temp float)
|
||||
0:73 Constant:
|
||||
0:73 0.000005
|
||||
0:73 5.0000000000000e-06
|
||||
0:74 Sequence
|
||||
0:74 move second child to first child ( temp float)
|
||||
0:74 'g7' ( temp float)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue