CuAssert 58 test/api/CuTest.h void CuAssert(CuTest* tc, char* message, int condition); CuAssert 34 test/api/gc-test.c CuAssert(T, "GC struct isn't at start of first page", P->mem == P->mem->birth_lo); CuAssert 35 test/api/gc-test.c CuAssert(T, "stack length is not a positive number", potion_stack_len(P, NULL) > 0); CuAssert 45 test/api/gc-test.c CuAssert(T, "couldn't allocate 16 bytes from GC", PN_IS_PTR(ptr)); CuAssert 46 test/api/gc-test.c CuAssert(T, "only one or two allocations should be found", count >= 1 && count <= 2); CuAssert 54 test/api/gc-test.c CuAssert(T, "couldn't allocate 16 bytes from GC", PN_IS_PTR(ptr)); CuAssert 55 test/api/gc-test.c CuAssert(T, "s1", PN_IS_STR(s1)); CuAssert 62 test/api/gc-test.c CuAssert(T, "couldn't allocate 16 bytes from GC", PN_IS_PTR(ptr)); CuAssert 71 test/api/gc-test.c CuAssert(T, "couldn't allocate 16 bytes from GC", PN_IS_PTR(ptr)); CuAssert 72 test/api/gc-test.c CuAssert(T, "couldn't allocate 16 bytes from GC", PN_IS_PTR(ptr2)); CuAssert 73 test/api/gc-test.c CuAssert(T, "couldn't allocate 16 bytes from GC", PN_IS_PTR(ptr3)); CuAssert 74 test/api/gc-test.c CuAssert(T, "couldn't allocate 16 bytes from GC", PN_IS_PTR(ptr4)); CuAssert 75 test/api/gc-test.c CuAssert(T, "min. four allocations should be found", count >= 4); CuAssert 87 test/api/gc-test.c CuAssert(T, "copied location identical to original", (old & 0xFFFF) != (PN)ptr); CuAssert 89 test/api/gc-test.c CuAssert(T, "copied data not identical to original", CuAssert 20 test/api/potion-test.c CuAssert(T, "nil isn't a nil type", PN_TYPE(PN_NIL) == PN_TNIL); CuAssert 21 test/api/potion-test.c CuAssert(T, "nil is a ref", !PN_IS_PTR(PN_NIL)); CuAssert 22 test/api/potion-test.c CuAssert(T, "nil nil? is false", CuAssert 27 test/api/potion-test.c CuAssert(T, "true isn't a bool type", PN_TYPE(PN_TRUE) == PN_TBOOLEAN); CuAssert 28 test/api/potion-test.c CuAssert(T, "true is a ref", !PN_IS_PTR(PN_TRUE)); CuAssert 29 test/api/potion-test.c CuAssert(T, "false isn't a bool type", PN_TYPE(PN_FALSE) == PN_TBOOLEAN); CuAssert 30 test/api/potion-test.c CuAssert(T, "false is a ref", !PN_IS_PTR(PN_FALSE)); CuAssert 35 test/api/potion-test.c CuAssert(T, "zero isn't zero", PN_INT(zero) == 0); CuAssert 36 test/api/potion-test.c CuAssert(T, "zero isn't a number", PN_IS_INT(zero)); CuAssert 37 test/api/potion-test.c CuAssert(T, "zero is a ref", !PN_IS_PTR(zero)); CuAssert 38 test/api/potion-test.c CuAssert(T, "zero bad add", CuAssert 44 test/api/potion-test.c CuAssert(T, "positive numbers invalid", PN_INT(pos) == 10891); CuAssert 45 test/api/potion-test.c CuAssert(T, "positive not a number", PN_IS_INT(pos)); CuAssert 46 test/api/potion-test.c CuAssert(T, "positive is a ref", !PN_IS_PTR(pos)); CuAssert 47 test/api/potion-test.c CuAssert(T, "positive bad add", CuAssert 53 test/api/potion-test.c CuAssert(T, "negative numbers invalid", PN_INT(neg) == -4343); CuAssert 54 test/api/potion-test.c CuAssert(T, "negative not a number", PN_IS_INT(neg)); CuAssert 55 test/api/potion-test.c CuAssert(T, "negative is a ref", !PN_IS_PTR(neg)); CuAssert 56 test/api/potion-test.c CuAssert(T, "negative bad add", CuAssert 62 test/api/potion-test.c CuAssert(T, "double not a number", PN_TYPE(dec) == PN_TNUMBER); CuAssert 66 test/api/potion-test.c CuAssert(T, "string isn't a string", PN_IS_STR(PN_string)); CuAssert 67 test/api/potion-test.c CuAssert(T, "string isn't a ref", PN_IS_PTR(PN_string)); CuAssert 68 test/api/potion-test.c CuAssert(T, "string length isn't working", CuAssert 74 test/api/potion-test.c CuAssert(T, "empty isn't a tuple", PN_IS_TUPLE(empty)); CuAssert 75 test/api/potion-test.c CuAssert(T, "empty isn't a ref", PN_IS_PTR(empty)); CuAssert 85 test/api/potion-test.c CuAssert(T, "tuple isn't a tuple", PN_IS_TUPLE(tup)); CuAssert 86 test/api/potion-test.c CuAssert(T, "tuple isn't a ref", PN_IS_PTR(tup)); CuAssert 94 test/api/potion-test.c CuAssert(T, "signature isn't a tuple", PN_IS_TUPLE(sig)); CuAssert 116 test/api/potion-test.c CuAssert(T, "signature isn't a tuple", PN_IS_TUPLE(sig)); CuAssert 244 test/api/potion-test.c CuAssert(T, "wrong type for allocated object", ((struct PNObject *)scanptr)->vt <= PN_TUSER); CuAssert 248 test/api/potion-test.c CuAssert(T, "allocated object goes beyond GC pointer", (PN)scanptr <= (PN)M->birth_cur);