pike.git/
src/
testsuite.in
Branch:
Tag:
Non-build tags
All tags
No tags
2014-11-03
2014-11-03 17:49:18 by Arne Goedeke <el@laramies.com>
31649d51ebee910c86c5d6a149b23b2da50e00e8 (
10
lines) (+
10
/-
0
)
[
Show
|
Annotate
]
Branch:
8.1
Testsuite: very basic test of F_APPEND_MAPPING
8087:
test_eval_error(return this_object() + this_object()) test_any(return((1+2+3)-(1+2-3)), 6)
+
// testing F_APPEND_MAPPING
+
test_any([[
+
// F_APPEND_MAPPING is not used when adding constant mappings
+
string index = "foo";
+
mapping m = ([ "foo" : 1 ]);
+
m += ([ index : 2 ]);
+
return m->foo;
+
]], 2)
-
+
// testing - test_eq(10-3,7) test_eq(3-10,-7)