pike.git/
src/
testsuite.in
Branch:
Tag:
Non-build tags
All tags
No tags
2000-03-07
2000-03-07 21:22:54 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>
662a901a0d31055cc2c9bf34eb801349346febf5 (
7
lines) (+
4
/-
3
)
[
Show
|
Annotate
]
Branch:
7.9
fixed a bug in the test for local functions
Rev: src/testsuite.in:1.282
1:
dnl -*- Pike -*-
-
test_true([["$Id: testsuite.in,v 1.
281
2000/03/07
13
:
03
:
00
noring
Exp $"]]);
+
test_true([["$Id: testsuite.in,v 1.
282
2000/03/07
21
:
22
:
54
hubbe
Exp $"]]);
cond([[all_constants()->_verify_internals]], [[
841:
test_eq([[lambda(int x) { return lambda() { return lambda() { return x; };};}(17)()()]],17) test_eq(120,
-
[[
int g
()
+
[[
lambda
()
{ int f(int i) { return i == 0 ? 1 : i*f(i-1); }; return f(5);
-
}
; return g
(); ]])
+
}(); ]])
test_eq([[function f; for(int i = 0; i < 2; i++)