From a90f8581c30cf434c7f5ff5a10ded59c57d7e6d3 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 10 Mar 2024 00:59:42 -0500 Subject: Clean up doctesting for assignments --- builtins/functions.c | 2 +- builtins/functions.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'builtins') diff --git a/builtins/functions.c b/builtins/functions.c index ae67fcb9..2bd47286 100644 --- a/builtins/functions.c +++ b/builtins/functions.c @@ -130,7 +130,7 @@ public CORD builtin_last_err() return CORD_from_char_star(strerror(errno)); } -public void __doctest(void *expr, const TypeInfo *type, CORD expected, const char *filename, int64_t start, int64_t end) +public void $test(void *expr, const TypeInfo *type, CORD expected, const char *filename, int64_t start, int64_t end) { static file_t *file = NULL; if (filename && (file == NULL || strcmp(file->filename, filename) != 0)) diff --git a/builtins/functions.h b/builtins/functions.h index e476f104..ca849048 100644 --- a/builtins/functions.h +++ b/builtins/functions.h @@ -11,7 +11,7 @@ extern const char *SSS_HASH_VECTOR; void fail(CORD fmt, ...); void fail_source(const char *filename, int64_t start, int64_t end, CORD fmt, ...); CORD builtin_last_err(); -void __doctest(void *expr, const TypeInfo *type, CORD expected, const char *filename, int64_t start, int64_t end); +void $test(void *expr, const TypeInfo *type, CORD expected, const char *filename, int64_t start, int64_t end); void say(CORD text); uint32_t generic_hash(const void *obj, const TypeInfo *type); -- cgit v1.2.3