pike.git/
src/
testsuite.in
Branch:
Tag:
Non-build tags
All tags
No tags
2000-11-29
2000-11-29 12:45:50 by Mirar (Pontus Hagland) <pike@sort.mirar.org>
94671c78bb1fc4b52c101a6ebc4a1d801c834709 (
13
lines) (+
7
/-
6
)
[
Show
|
Annotate
]
Branch:
7.9
more (mapping) tests, see [bug
832 (#832)
]
Rev: src/testsuite.in:1.350
1:
-
test_true([["$Id: testsuite.in,v 1.
349
2000/11/29
11
:
52
:
31
mirar Exp $"]]);
+
test_true([["$Id: testsuite.in,v 1.
350
2000/11/29
12
:
45
:
50
mirar Exp $"]]);
cond([[all_constants()->_verify_internals]], [[
4081:
test_true([[(array(array))([1:2,3:4,5:6]) ]]) test_equal( [[ (multiset) ({1})]], [[ (< 1 >) ]] ) test_eval_error([[return (mapping)""]])
-
test_equal( (mapping)({({1,2}),({3,4})}), ([1:2,3:4]) )
-
test_equal( ({({1,2})}), (array)([1:2]) )
-
test_equal( (mapping)({}), ([]) )
-
test_equal( ({}), (array)([]) )
+
test_equal(
[[
(mapping)({({1,2}),({3,4})})
]]
,
[[
([1:2,3:4])
]]
)
+
test_equal(
[[
({({1,2})})
]]
,
[[
(array)([1:2])
]]
)
+
test_equal(
[[
(mapping)({})
]]
,
[[
([])
]]
)
+
test_equal(
[[
({})
]]
,
[[
(array)([])
]]
)
+
test_true([[ (mapping)({ ({1,2,3}), ({4,5,6}) }) ]]);
-
+
// testing @ test_equal(({1,2,3}),lambda(mixed ... x) { return x; }(@a())) test_equal("foo"/"",lambda(mixed ... x) { return x; }(@a()))