mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-25 14:24:11 +00:00
Estimated hours taken: 0.25
Adapt the tests in the general directory so that the version of the
Mercury compiler built with MSVC passes them in the hlc.gc grade.
float_test.exp2:
string_format_test.exp3:
The MSVC runtime prints out floating points using three digits for
the exponent.
17 lines
239 B
Plaintext
17 lines
239 B
Plaintext
1234.5678: 1.23e+003
|
|
X: 3
|
|
Y: 4
|
|
X + Y: 7
|
|
X * Y: 12
|
|
X - Y: -1
|
|
X / Y: 0.75
|
|
X: 41
|
|
Y: -3
|
|
X + Y: 38
|
|
X * Y: -123
|
|
X - Y: 44
|
|
X / Y: -13.7
|
|
Float max: 1.8e+308
|
|
Float min: 2.23e-308
|
|
Float epsilon: 2.22e-016
|