pike.git
/
src
/
testsuite.in
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/testsuite.in:1:
START_MARKER
-
test_true([["$Id: testsuite.in,v 1.
769
2006/
10
/
28
19
:
18
:
08
grubba
Exp $"]]);
+
test_true([["$Id: testsuite.in,v 1.
770
2006/
11
/
07
20
:
54
:
37
mast
Exp $"]]);
// This triggered a bug only if run sufficiently early. test_compile_any([[#pike 7.2]]) test_compile_any([[#pike 7.4]]) test_compile_any([[#pike 7.0]]) test_compile_any([[#pike 0.6]]) cond([[all_constants()->_verify_internals]], [[ test_do(_verify_internals())
pike.git/src/testsuite.in:7465:
return i; ]]) test_any([[ String.Iterator iter = String.Iterator ("foo"); foreach (iter; int idx;) if (idx != iter->index()) return 1; return 0; ]], 0)
+
test_any([[
+
mapping(object:int) x = ([]);
+
object o = class {}();
+
x[o] = 1;
+
destruct (o);
+
int i;
+
foreach (x; object p;) i++;
+
return i;
+
]], 0)
+
+
test_any([[
+
multiset(object) x = (<>);
+
object o = class {}();
+
x[o] = 1;
+
destruct (o);
+
int i;
+
foreach (x; object p;) i++;
+
return i;
+
]], 0)
+
// do-while test_any(int e;string t=""; e=0; do{ t+=e; }while(++e<6); return t,"012345";) // while test_any(int e;string t=""; e=8; while(--e) t+=e; return t,"7654321";) test_any(int e;string t=""; e=8; while(e--) t+=e; return t,"76543210";) test_any(int e;string t=""; e=0; while(++e<6) t+=e; return t,"12345";) test_any(int e=1;string t=""; while(e<20){t+=e;e*=2;} return t,"124816";) // Switch