mud/fluffos-2.23-ds03/testsuite/single/tests/efuns/all_inventory.c
2020-09-06 05:43:07 -07:00

31 lines
537 B
C

void do_tests() {
#ifndef __NO_ENVIRONMENT__
int s = sizeof(all_inventory(this_object()));
ASSERT(sizeof(all_inventory()) == s);
for (int i = 0; i < 5; i++) {
ASSERT(sizeof(all_inventory()) == s + i);
clone_object(file_name());
}
ASSERT(filter(all_inventory(this_object()), (: !$1->is_all_inv_test() :)));
#endif
}
int is_all_inv_test() {
return 1;
}
void
create() {
#ifndef __NO_ENVIRONMENT__
if (clonep()) {
string s = file_name();
sscanf(s, "%s#%*d", s);
move_object(s);
}
#endif
}