aboutsummaryrefslogtreecommitdiff
path: root/nextlang.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-02-12 02:07:12 -0500
committerBruce Hill <bruce@bruce-hill.com>2024-02-12 02:07:12 -0500
commitda1081387f2ae645fece8715481385973775941d (patch)
tree1926b3a09e2c931ad28f8f2ceaa06ee5d293d809 /nextlang.h
parentade25eeb5a1f76ac1b7b82c5d4f82dcaeedcc3e4 (diff)
Fix doctests for declarations
Diffstat (limited to 'nextlang.h')
-rw-r--r--nextlang.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/nextlang.h b/nextlang.h
index fda796c8..7d63659c 100644
--- a/nextlang.h
+++ b/nextlang.h
@@ -78,7 +78,7 @@ CORD as_cord(void *x, const char *fmt, ...);
#define say(str) puts(CORD_to_const_char_star(__cord(str)))
#define __test(src, expr, expected) do { \
CORD __result = __cord(expr); \
- say(CORD_catn(5, USE_COLOR ? "\x1b[33;1m>>>\x1b[0m " : ">>> ", src, USE_COLOR ? "\n\x1b[0;2m=\x1b[0;35m " : "\n=== ", __result, "\x1b[m")); \
+ say(CORD_catn(5, USE_COLOR ? "\x1b[33;1m>>>\x1b[0m " : ">>> ", src, USE_COLOR ? "\n\x1b[0;2m=\x1b[0;35m " : "\n= ", __result, "\x1b[m")); \
if (expected && CORD_cmp(__result, expected)) { \
errx(1, "I expected:\n%s but got:\n%s", CORD_to_const_char_star(expected), CORD_to_const_char_star(__result)); \
} \