mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-15 17:33:38 +00:00
Add an expected out file which expects the behavior on these backends, which prints -0 as 0. Update the programming style of the test source code.
18 lines
544 B
Plaintext
18 lines
544 B
Plaintext
string__to_float("1.23") = 1.230000
|
|
string__to_float("x1.23") FAILS
|
|
string__to_float("1.23x") FAILS
|
|
string__to_float("x1.23x") FAILS
|
|
string__to_float(" 1.23") FAILS
|
|
string__to_float("1.23 ") FAILS
|
|
string__to_float(" 1.23 ") FAILS
|
|
string__to_float("1") = 1.000000
|
|
string__to_float("-1") = -1.000000
|
|
string__to_float("+1") = 1.000000
|
|
string__to_float("0") = 0.000000
|
|
string__to_float("+0") = 0.000000
|
|
string__to_float("-0") = 0.000000
|
|
string__to_float("-") FAILS
|
|
string__to_float("+") FAILS
|
|
string__to_float(" ") FAILS
|
|
string__to_float("") FAILS
|