keys.c
v22.2b14/testsuite/single/tests/efuns/keys.c · 174 B
From the archive beta.tar.gz
Download the archive « Back to the archive contents
void do_tests() {
mapping m = ([ 1 : 2, 3 : 4, 5 : 6 ]);
mixed *k = keys(m);
mixed x, y;
foreach (x, y in m) {
k -= ({ x });
}
ASSERT(k == ({}));
}