pike.git/
src/
testsuite.in
Branch:
Tag:
Non-build tags
All tags
No tags
2001-05-17
2001-05-17 17:48:10 by Henrik Grubbström (Grubba) <grubba@grubba.org>
fda2e1cbe155ac96221e3d1a96c543b3a9b6d6e2 (
17
lines) (+
9
/-
8
)
[
Show
|
Annotate
]
Branch:
7.9
Fixed a few bugs in the String.SplitIterator tests.
Rev: src/testsuite.in:1.411
1:
-
test_true([["$Id: testsuite.in,v 1.
410
2001/05/17
16
:
58
:
39
grubba Exp $"]]);
+
test_true([["$Id: testsuite.in,v 1.
411
2001/05/17
17
:
48
:
10
grubba Exp $"]]);
cond([[all_constants()->_verify_internals]], [[
4844:
object it = String.SplitIterator(" foobar gazonk gurka baz ", ' '); array res = ({}); foreach(it; int i; string part) {
-
res += ({
it
});
+
res += ({
part
});
} return equal(res, " foobar gazonk gurka baz "/" "); ]], 1)
4852:
object it = String.SplitIterator(" foobar gazonk gurka baz ", ' '); return sizeof(it); ]], [[
-
return
sizeof(" foobar gazonk gurka baz "/" ");
+
sizeof(" foobar gazonk gurka baz "/" ");
]]) test_any([[ object it = String.SplitIterator(" foobar gazonk gurka baz ", ' ', 1); array res = ({}); foreach(it; int i; string part) {
-
res += ({
it
});
+
res += ({
part
});
} return equal(res, "foobar gazonk gurka baz"/" "); ]], 1) test_any([[
-
object it = String.SplitIterator(" foobar gazonk gurka baz ", ' ');
+
object it = String.SplitIterator(" foobar gazonk gurka baz ", ' '
, 1
);
return sizeof(it); ]], [[
-
return
sizeof("foobar gazonk gurka baz"/" ");
+
sizeof("foobar gazonk gurka baz"/" ");
]])
7211:
([ "/":".", ".pmod":""]) ); if(prg[sizeof(prg)-7..]==".module") prg = prg[..sizeof(prg)-8];
-
werror("Resolving %O...\n", prg);
+
//
werror("Resolving %O...\n", prg);
if( catch( master()->resolv(prg) ) ) { werror("test: failed to peek at %O\n", prg); ok=0;
7220:
void test_dir(string dir, int|void base_size) {
-
werror("Testing directory %O...\n", dir);
+
//
werror("Testing directory %O...\n", dir);
if(!base_size) base_size=sizeof(dir); foreach(get_dir(dir), string s) {