better escape code support

This commit is contained in:
2026-08-11 21:16:25 +02:00
parent c2343b54bb
commit 378eb637c6
5 changed files with 63 additions and 15 deletions
+2 -2
View File
@@ -73,10 +73,10 @@ expect_type func($Expected, $Actual type, _ Actual, location SourceLocation) voi
run func(name []u8, callback *func() void ! Error) bool {
callback() catch |_| {
debug.print("{s}...[failed]\n", {name,})
debug.print("{s}...[\x1b[91mfailure\x1b[0m]\n", {name,})
return false
}
debug.print("{s}...[ok]\n", {name,})
debug.print("{s}...[\x1b[92mok\x1b[0m]\n", {name,})
return true
}