pike.git/
src/
testsuite.in
Branch:
Tag:
Non-build tags
All tags
No tags
2009-06-30
2009-06-30 14:20:38 by Martin Stjernholm <mast@lysator.liu.se>
d7e29cc6d96f5a9c32fdb89f07241791f692e220 (
10
lines) (+
9
/-
1
)
[
Show
|
Annotate
]
Branch:
7.9
Added tests for casting floats to strings.
Rev: src/testsuite.in:1.875
1:
START_MARKER
-
test_true([["$Id: testsuite.in,v 1.
874
2009/06/
24
20:
23:43
grubba
Exp $"]]);
+
test_true([["$Id: testsuite.in,v 1.
875
2009/06/
30
14:
20:
38
mast
Exp $"]]);
// This triggered a bug only if run sufficiently early. test_compile_any([[#pike 7.2]])
8230:
test_eq([[(float)-1]],[[-1.0]]) test_eq([[(string)1]],[["1"]]) test_eq([[(string)-1]],[["-1"]])
+
test_eq([[(string)1.0]],[["1.0"]])
+
test_eq([[(string)-1.0]],[["-1.0"]])
+
test_true([[has_value ((string)1e100, ".")]])
+
test_true([[has_value ((string)1e-100, ".")]])
+
test_true([[has_value ((string)-1e100, ".")]])
+
test_true([[has_value ((string)-1e-100, ".")]])
+
test_true([[has_value ((string)124354236143512312334562453624.1, ".")]])
test_do(return (string)1e308) test_do(return (string)1e200) test_do(return (string)1e-200)