diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-03-10 00:59:42 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-03-10 00:59:42 -0500 |
| commit | a90f8581c30cf434c7f5ff5a10ded59c57d7e6d3 (patch) | |
| tree | b7fd0428c6fe218fc9cb362b46ba762bcb11f039 /builtins | |
| parent | f1c46b199fadd496329d11bbbb868b14973dfa8e (diff) | |
Clean up doctesting for assignments
Diffstat (limited to 'builtins')
| -rw-r--r-- | builtins/functions.c | 2 | ||||
| -rw-r--r-- | builtins/functions.h | 2 |
2 files changed, 2 insertions, 2 deletions
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); |
