From fd722c39cbb725ad863ceb9aceb2c6278a8e5273 Mon Sep 17 00:00:00 2001 From: Arslaan Pathan Date: Fri, 2 Oct 2026 22:40:41 +1300 Subject: Tests work regardless of debug or not --- tests/Object.m | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'tests/Object.m') diff --git a/tests/Object.m b/tests/Object.m index df955cf..8c467cb 100644 --- a/tests/Object.m +++ b/tests/Object.m @@ -2,9 +2,18 @@ #include int main(void) { - printf("PXObject test (alloc)\n"); - + printf("PXObject test "); +#ifdef PARADOX_DEBUG_FEATURES + printf("(allocDebug)\n"); +#else + printf("(alloc)\n"); +#endif + +#ifdef PARADOX_DEBUG_FEATURES + PXObject *object = [PXObject allocDebug]; +#else PXObject *object = [PXObject alloc]; +#endif if (object == nil) { fprintf(stderr, "PXObject failed to alloc :c\n"); -- cgit v1.2.3