keys.c

ds2.10/fluffos-2.16-ds05/testsuite/single/tests/efuns/keys.c · 181 B

From the archive ds2.10.zip

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 == ({}));
}

Site Stats

Snippets: 1791
Codebases: 571