From f3af7e65f4d83f6b02e1158500122cd97962f313 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 1 Apr 2025 14:12:00 -0400 Subject: Show full doctest inspection if test fails --- src/stdlib/stdlib.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/stdlib/stdlib.h') diff --git a/src/stdlib/stdlib.h b/src/stdlib/stdlib.h index 725d5d03..aaa4a1d6 100644 --- a/src/stdlib/stdlib.h +++ b/src/stdlib/stdlib.h @@ -73,11 +73,11 @@ void end_inspect(const void *expr, const TypeInfo_t *type); end_inspect(&_expr, typeinfo); \ } __attribute__((nonnull)) -void test_value(const void *expr, const void *expected, const TypeInfo_t *type); +void test_value(const char *filename, int64_t start, int64_t end, const void *expr, const void *expected, const TypeInfo_t *type); #define test(expr, expected, typeinfo, start, end) {\ auto _expr = expr; \ auto _expected = expected; \ - test_value(&_expr, &_expected, typeinfo); \ + test_value(__SOURCE_FILE__, start, end, &_expr, &_expected, typeinfo); \ } void say(Text_t text, bool newline); -- cgit v1.2.3