This commit is contained in:
Kartik K. Agaram 2021-02-09 21:53:24 -08:00
parent c29e589b6a
commit dfa61e6299
1 changed files with 3 additions and 6 deletions

View File

@ -2,16 +2,13 @@
fn check-ints-equal _a: int, b: int, msg: (addr array byte) {
var a/eax: int <- copy _a
compare a, b
{
break-if-=
draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0/screen, msg, 3/fg/cyan, 0/bg
count-test-failure
return
}
{
break-if-!=
draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0/screen, ".", 3/fg/cyan, 0/bg
return
}
draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0/screen, msg, 3/fg/cyan, 0/bg
count-test-failure
}
fn test-check-ints-equal {