pike.git/
src/
testsuite.in
Branch:
Tag:
Non-build tags
All tags
No tags
2000-06-13
2000-06-13 19:51:02 by Martin Nilsson <mani@lysator.liu.se>
17a46a76797e3908dc98f0ec687093bed01e5480 (
11
lines) (+
10
/-
1
)
[
Show
|
Annotate
]
Branch:
7.9
Added a few cast tests.
Rev: src/testsuite.in:1.304
1:
-
test_true([["$Id: testsuite.in,v 1.
303
2000/06/
12
23
:
00
:
32
mast
Exp $"]]);
+
test_true([["$Id: testsuite.in,v 1.
304
2000/06/
13
19
:
51
:
02
nilsson
Exp $"]]);
cond([[all_constants()->_verify_internals]], [[
3342:
// casting test_eq([[(int)1]],[[1]])
+
test_eq([[(int)-1]],[[-1]])
test_eq([[(int)1.0]],[[1]])
-
+
test_eq([[(int)-1.0]],[[-1]])
test_eq([[(int)"1"]],[[1]])
-
+
test_eq([[(int)"-1"]],[[-1]])
test_eq([[(float)"1"]],[[1.0]])
-
+
test_eq([[(float)"-1"]],[[-1.0]])
test_eq([[(float)"1.0"]],[[1.0]])
-
+
test_eq([[(float)"-1.0"]],[[-1.0]])
test_eq([[(float)1.0]],[[1.0]])
-
+
test_eq([[(float)-1.0]],[[-1.0]])
test_eq([[(float)1]],[[1.0]])
-
+
test_eq([[(float)-1]],[[-1.0]])
test_eq([[(string)1]],[["1"]])
-
+
test_eq([[(string)-1]],[["-1"]])
test_equal([[(array)(["1":1])]],[[ ({ ({"1", 1}) }) ]]) test_equal([[(array(int)) ({"1","4711",2.0,4})]],[[({1,4711,2,4})]]) test_equal([[(array(array))({({})})]],[[({({})})]])