pike.git/
src/
testsuite.in
Branch:
Tag:
Non-build tags
All tags
No tags
2006-07-07
2006-07-07 18:10:45 by Martin Stjernholm <mast@lysator.liu.se>
f8d940c07bb7ec86d4e501db2c80a32806fb5cef (
16
lines) (+
15
/-
1
)
[
Show
|
Annotate
]
Branch:
7.9
Added test case for node count bug in multiset_set_cmp_less.
Rev: src/testsuite.in:1.767
1:
START_MARKER
-
test_true([["$Id: testsuite.in,v 1.
766
2006/
06
/
16
16
:
32
:
24
grubba
Exp $"]]);
+
test_true([["$Id: testsuite.in,v 1.
767
2006/
07
/
07
18
:
10
:
45
mast
Exp $"]]);
// This triggered a bug only if run sufficiently early. test_compile_any([[#pike 7.2]])
4655:
if (!a[i]) error ("Can't find multiset member in itself: %O\n", i); ]])
+
test_any_equal([[
+
multiset m=(<"Stone","2","%70">);
+
foreach(m;string k;)
+
{
+
if(k=="%70")
+
{
+
m[k]=0;
+
break;
+
}
+
}
+
return sort ((array) (m - (<>)));
+
]], ({"2", "Stone"}))
+
// mapping tests test_any([[mapping m=([]);int e;