pike.git/
src/
testsuite.in
Branch:
Tag:
Non-build tags
All tags
No tags
1999-08-20
1999-08-20 06:04:01 by Martin Stjernholm <mast@lysator.liu.se>
2228d5c3db24cf7aded005037f706b09ea4ebe2e (
9
lines) (+
6
/-
3
)
[
Show
|
Annotate
]
Branch:
7.9
Check that array
["string"]
works now instead..
Rev: src/testsuite.in:1.191
1:
-
stest_true([["$Id: testsuite.in,v 1.
190
1999/08/20
05
:
44
:
20
mast Exp $"]])
+
stest_true([["$Id: testsuite.in,v 1.
191
1999/08/20
06
:
04
:
01
mast Exp $"]])
cond([[all_constants()->_verify_internals]], [[ test_do(_verify_internals())
603:
({([1:1]),([1:1,2:12]),([1:1,2:13])})) test_any_equal(array a = ({(["a":10]),(["b":11]),([])}); map(a,`->=,"a",1); return a;, ({(["a":1]),(["a":1,"b":11]),(["a":1])}))
-
dnl
test_
eval
_
error
(array a = ({(["i":1]),([])}); a["i"];)
-
test_
eval
_
error
(array a = ({(["i":1]),([])}); a["i"] = 7;)
+
test_
any
_
equal
(array a = ({(["i":1]),([])});
return
a["i"];
,
+
({1,0}
)
)
+
test_
any
_
equal
(array a = ({(["i":1]),([])}); a["i"] = 7;
return a;,
+
({(["i":7]
)
,(["i":7])}))
test_any([[ class A {int i = 10; int ii(){return i;}}; class B {inherit A;};