allocate.c
ds2.10/fluffos-2.16-ds05/testsuite/single/tests/efuns/allocate.c · 225 B
From the archive ds2.10.zip
Download the archive « Back to the archive contents
void do_tests() {
for (int i = 0; i < 10; i++) {
ASSERT(sizeof(allocate(i)) == i);
ASSERT(filter(allocate(i), (: $1 :)) == ({}));
}
ASSERT(allocate(0) == ({}));
ASSERT(catch(allocate(-10)));
}