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 23 test/api/p2-test.c CuAssert(T, "undef isn't a nil type", PN_TYPE(PN_NIL) == PN_TNIL); CuAssert 24 test/api/p2-test.c CuAssert(T, "undef is a ref", !PN_IS_PTR(PN_NIL)); CuAssert 25 test/api/p2-test.c CuAssert(T, "defined undef is not false", CuAssert 28 test/api/p2-test.c CuAssert(T, "defined num is not true", CuAssert 35 test/api/p2-test.c CuAssert(T, "zero isn't zero", PN_INT(zero) == 0); CuAssert 36 test/api/p2-test.c CuAssert(T, "zero isn't a number", PN_IS_NUM(zero)); CuAssert 37 test/api/p2-test.c CuAssert(T, "zero is a ref", !PN_IS_PTR(zero)); CuAssert 38 test/api/p2-test.c CuAssert(T, "zero bad add", CuAssert 44 test/api/p2-test.c CuAssert(T, "positive numbers invalid", PN_INT(pos) == 10891); CuAssert 45 test/api/p2-test.c CuAssert(T, "positive not a number", PN_IS_NUM(pos)); CuAssert 46 test/api/p2-test.c CuAssert(T, "positive is a ref", !PN_IS_PTR(pos)); CuAssert 47 test/api/p2-test.c CuAssert(T, "positive bad add", CuAssert 53 test/api/p2-test.c CuAssert(T, "negative numbers invalid", PN_INT(neg) == -4343); CuAssert 54 test/api/p2-test.c CuAssert(T, "negative not a number", PN_IS_NUM(neg)); CuAssert 55 test/api/p2-test.c CuAssert(T, "negative is a ref", !PN_IS_PTR(neg)); CuAssert 56 test/api/p2-test.c CuAssert(T, "negative bad add", CuAssert 62 test/api/p2-test.c CuAssert(T, "decimal not a number", PN_TYPE(dec) == PN_TNUMBER); CuAssert 66 test/api/p2-test.c CuAssert(T, "string isn't a string", PN_IS_STR(PN_string)); CuAssert 67 test/api/p2-test.c CuAssert(T, "string isn't a ref", PN_IS_PTR(PN_string)); CuAssert 68 test/api/p2-test.c CuAssert(T, "string length isn't working", CuAssert 74 test/api/p2-test.c CuAssert(T, "empty isn't a tuple", PN_IS_TUPLE(empty)); CuAssert 75 test/api/p2-test.c CuAssert(T, "empty isn't a ref", PN_IS_PTR(empty)); CuAssert 85 test/api/p2-test.c CuAssert(T, "tuple isn't a tuple", PN_IS_TUPLE(tup)); CuAssert 86 test/api/p2-test.c CuAssert(T, "tuple isn't a ref", PN_IS_PTR(tup)); CuAssert 93 test/api/p2-test.c CuAssert(T, "signature Num $num1, Num $num2 isn't a tuple", PN_IS_TUPLE(sig)); CuAssert 96 test/api/p2-test.c CuAssert(T, "signature $x,$y|$r isn't a tuple", PN_IS_TUPLE(sig)); CuAssert 110 test/api/p2-test.c CuAssert(T, "wrong type for allocated object", ((struct PNObject *)scanptr)->vt <= PN_TUSER); CuAssert 113 test/api/p2-test.c CuAssert(T, "allocated object goes beyond GC pointer", (PN)scanptr <= (PN)P->mem->birth_cur); CuAssert 19 test/api/potion-test.c CuAssert(T, "nil isn't a nil type", PN_TYPE(PN_NIL) == PN_TNIL); CuAssert 20 test/api/potion-test.c CuAssert(T, "nil is a ref", !PN_IS_PTR(PN_NIL)); CuAssert 21 test/api/potion-test.c CuAssert(T, "nil nil? is false", CuAssert 26 test/api/potion-test.c CuAssert(T, "true isn't a bool type", PN_TYPE(PN_TRUE) == PN_TBOOLEAN); CuAssert 27 test/api/potion-test.c CuAssert(T, "true is a ref", !PN_IS_PTR(PN_TRUE)); CuAssert 28 test/api/potion-test.c CuAssert(T, "false isn't a bool type", PN_TYPE(PN_FALSE) == PN_TBOOLEAN); CuAssert 29 test/api/potion-test.c CuAssert(T, "false is a ref", !PN_IS_PTR(PN_FALSE)); CuAssert 34 test/api/potion-test.c CuAssert(T, "zero isn't zero", PN_INT(zero) == 0); CuAssert 35 test/api/potion-test.c CuAssert(T, "zero isn't a number", PN_IS_NUM(zero)); CuAssert 36 test/api/potion-test.c CuAssert(T, "zero is a ref", !PN_IS_PTR(zero)); CuAssert 37 test/api/potion-test.c CuAssert(T, "zero bad add", CuAssert 43 test/api/potion-test.c CuAssert(T, "positive numbers invalid", PN_INT(pos) == 10891); CuAssert 44 test/api/potion-test.c CuAssert(T, "positive not a number", PN_IS_NUM(pos)); CuAssert 45 test/api/potion-test.c CuAssert(T, "positive is a ref", !PN_IS_PTR(pos)); CuAssert 46 test/api/potion-test.c CuAssert(T, "positive bad add", CuAssert 52 test/api/potion-test.c CuAssert(T, "negative numbers invalid", PN_INT(neg) == -4343); CuAssert 53 test/api/potion-test.c CuAssert(T, "negative not a number", PN_IS_NUM(neg)); CuAssert 54 test/api/potion-test.c CuAssert(T, "negative is a ref", !PN_IS_PTR(neg)); CuAssert 55 test/api/potion-test.c CuAssert(T, "negative bad add", CuAssert 61 test/api/potion-test.c CuAssert(T, "decimal not a number", PN_TYPE(dec) == PN_TNUMBER); CuAssert 65 test/api/potion-test.c CuAssert(T, "string isn't a string", PN_IS_STR(PN_string)); CuAssert 66 test/api/potion-test.c CuAssert(T, "string isn't a ref", PN_IS_PTR(PN_string)); CuAssert 67 test/api/potion-test.c CuAssert(T, "string length isn't working", CuAssert 73 test/api/potion-test.c CuAssert(T, "empty isn't a tuple", PN_IS_TUPLE(empty)); CuAssert 74 test/api/potion-test.c CuAssert(T, "empty isn't a ref", PN_IS_PTR(empty)); CuAssert 84 test/api/potion-test.c CuAssert(T, "tuple isn't a tuple", PN_IS_TUPLE(tup)); CuAssert 85 test/api/potion-test.c CuAssert(T, "tuple isn't a ref", PN_IS_PTR(tup)); CuAssert 93 test/api/potion-test.c CuAssert(T, "signature isn't a tuple", PN_IS_TUPLE(sig)); CuAssert 115 test/api/potion-test.c CuAssert(T, "signature isn't a tuple", PN_IS_TUPLE(sig)); CuAssert 243 test/api/potion-test.c CuAssert(T, "wrong type for allocated object", ((struct PNObject *)scanptr)->vt <= PN_TUSER); CuAssert 247 test/api/potion-test.c CuAssert(T, "allocated object goes beyond GC pointer", (PN)scanptr <= (PN)M->birth_cur);