From 535fe9ac96dba0950efd1bfe6788801f6197971f Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Sat, 13 Feb 2021 18:18:05 -0800 Subject: 7737 --- html/baremetal/502test.mu.html | 49 ++++++++++++++++++++++++++++++------------ 1 file changed, 35 insertions(+), 14 deletions(-) (limited to 'html/baremetal/502test.mu.html') diff --git a/html/baremetal/502test.mu.html b/html/baremetal/502test.mu.html index 00a5d854..8bce697e 100644 --- a/html/baremetal/502test.mu.html +++ b/html/baremetal/502test.mu.html @@ -62,20 +62,41 @@ if ('onhashchange' in window) { 3 var a/eax: int <- copy _a 4 compare a, b 5 { - 6 break-if-= - 7 draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0, msg, 3 # 3=cyan - 8 count-test-failure - 9 return -10 } -11 { -12 break-if-!= -13 draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0, ".", 3 # 3=cyan -14 } -15 } -16 -17 fn test-check-ints-equal { -18 check-ints-equal 0, 0, "abc" -19 } + 6 break-if-!= + 7 draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0/screen, ".", 3/fg/cyan, 0/bg + 8 return + 9 } +10 draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0/screen, msg, 3/fg/cyan, 0/bg +11 count-test-failure +12 } +13 +14 fn test-check-ints-equal { +15 check-ints-equal 0, 0, "abc" +16 } +17 +18 fn check _a: boolean, msg: (addr array byte) { +19 var a/eax: int <- copy _a +20 compare a, 0/false +21 { +22 break-if-= +23 draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0/screen, ".", 3/fg/cyan, 0/bg +24 return +25 } +26 draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0/screen, msg, 3/fg/cyan, 0/bg +27 count-test-failure +28 } +29 +30 fn check-not _a: boolean, msg: (addr array byte) { +31 var a/eax: int <- copy _a +32 compare a, 0/false +33 { +34 break-if-!= +35 draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0/screen, ".", 3/fg/cyan, 0/bg +36 return +37 } +38 draw-text-wrapping-right-then-down-from-cursor-over-full-screen 0/screen, msg, 3/fg/cyan, 0/bg +39 count-test-failure +40 } -- cgit 1.4.1-2-gfad0 or James Booth <boothj5@gmail.com> 2014-04-07 21:12:30 +0100 committer James Booth <boothj5@gmail.com> 2014-04-07 21:12:30 +0100 Removed statusbar functions from ui.h' href='/danisanti/profani-tty/commit/src/ui/statusbar.h?id=f0f0dbfdac75aaaac04f0b86f996b962e8464785'>f0f0dbfd ^
e2443511 ^



105c9c29 ^
95b639a2 ^
105c9c29 ^
e2443511 ^
9b55f2de ^
4bf67fb3 ^
9b55f2de ^
4bf67fb3 ^
e2443511 ^

5cdd69f4 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49