pike.git/
src/
testsuite.in
Branch:
Tag:
Non-build tags
All tags
No tags
2001-06-11
2001-06-11 18:18:42 by Henrik Grubbström (Grubba) <grubba@grubba.org>
1b54057a0f6869273722eab55dfee58eac8632d3 (
11
lines) (+
10
/-
1
)
[
Show
|
Annotate
]
Branch:
7.9
Added test for combine_path("/", "foo", "") compatibility.
Rev: src/testsuite.in:1.424
1:
-
test_true([["$Id: testsuite.in,v 1.
423
2001/06/
08
12
:
51
:
14
grubba Exp $"]]);
+
test_true([["$Id: testsuite.in,v 1.
424
2001/06/
11
18
:
18
:
42
grubba Exp $"]]);
cond([[all_constants()->_verify_internals]], [[
1635:
test_any([[ int x=1; void for10(function f) { for(int e=0;e<10;e++) f(); };
+
for10(lambda() { x++; });
+
return x;
+
]], 11)
+
+
test_any([[
+
int x=1;
+
void for10(function f) { for(int e=0;e<10;e++) f(); };
for10() { x++; } return x; ]], 11)
6107:
test_eq([[combine_path("/","../../foo")]],"/foo") test_eq([[combine_path("./foobar/.","..")]],".") test_eq([[combine_path("/","foo","bar","gazonk")]],"/foo/bar/gazonk")
+
test_eq([[combine_path("/", "foo", "")]], "/foo/")
test_eq([[combine_path("/","/foo/bar/ga\11111zonk/../../")]],"/foo/") test_eq([[combine_path("/","/fo\1111/bar/ga\11111zonk/../../")]],"/fo\1111/")