diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-02-17 20:09:59 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-02-17 20:09:59 -0500 |
| commit | 01a05db2171d83bd79cf281a368633085b268168 (patch) | |
| tree | 5fe370f9c8faeaaf1c583152ab731fe3a15598c2 /builtins/functions.c | |
| parent | d0ad2c6bc134b5dc72747dce005d7ad5f44834fc (diff) | |
Fix issue with doctesting typestrings
Diffstat (limited to 'builtins/functions.c')
| -rw-r--r-- | builtins/functions.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/builtins/functions.c b/builtins/functions.c index fe30046a..ecd652c0 100644 --- a/builtins/functions.c +++ b/builtins/functions.c @@ -139,7 +139,6 @@ public void __doctest(void *expr, TypeInfo *type, CORD expected, const char *fil CORD expr_plain = USE_COLOR ? generic_as_str(expr, false, type) : expr_str; bool success = (CORD_cmp(expr_plain, expected) == 0); if (!success && CORD_chr(expected, 0, ':')) { - expr_plain = heap_strf("%s : %s", expr_plain, type_name); success = (CORD_cmp(CORD_catn(3, expr_plain, " : ", type_name), expected) == 0); } |
