1 # print msg to screen if a != b, otherwise print "."
2 fn check-ints-equal _a: int, b: int, msg: (addr array byte) {
3 var a/eax: int <- copy _a
7 draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0/screen, ".", 3/fg/cyan, 0/bg
10 draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0/screen, msg, 3/fg/cyan, 0/bg
11 move-cursor-to-left-margin-of-next-line 0/screen
15 fn test-check-ints-equal {
16 check-ints-equal 0, 0, "abc"
19 fn check _a: boolean, msg: (addr array byte) {
20 var a/eax: int <- copy _a
24 draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0/screen, ".", 3/fg/cyan, 0/bg
27 draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0/screen, msg, 3/fg/cyan, 0/bg
28 move-cursor-to-left-margin-of-next-line 0/screen
32 fn check-not _a: boolean, msg: (addr array byte) {
33 var a/eax: int <- copy _a
37 draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0/screen, ".", 3/fg/cyan, 0/bg
40 draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0/screen, msg, 3/fg/cyan, 0/bg
41 move-cursor-to-left-margin-of-next-line 0/screen