fix other mandelbrot variants
[mu.git] / html / 502test.mu.html
blobd6b37153974e98d9c63ba031d941ac443a40b474
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta charset="UTF-8">
5 <title>Mu - 502test.mu</title>
6 <meta name="Generator" content="Vim/8.2">
7 <meta name="plugin-version" content="vim8.1_v2">
8 <meta name="syntax" content="none">
9 <meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback">
10 <meta name="colorscheme" content="minimal-light">
11 <style>
12 <!--
13 pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; }
14 body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; }
15 a { color:inherit; }
16 * { font-size:12pt; font-size: 1em; }
17 .PreProc { color: #c000c0; }
18 .Special { color: #ff6060; }
19 .LineNr { }
20 .Constant { color: #008787; }
21 .Delimiter { color: #c000c0; }
22 .muFunction { color: #af5f00; text-decoration: underline; }
23 .muTest { color: #5f8700; }
24 .muComment { color: #005faf; }
25 -->
26 </style>
28 <script>
29 <!--
31 /* function to open any folds containing a jumped-to line before jumping to it */
32 function JumpToLine()
34 var lineNum;
35 lineNum = window.location.hash;
36 lineNum = lineNum.substr(1); /* strip off '#' */
38 if (lineNum.indexOf('L') == -1) {
39 lineNum = 'L'+lineNum;
41 var lineElem = document.getElementById(lineNum);
42 /* Always jump to new location even if the line was hidden inside a fold, or
43 * we corrected the raw number to a line ID.
45 if (lineElem) {
46 lineElem.scrollIntoView(true);
48 return true;
50 if ('onhashchange' in window) {
51 window.onhashchange = JumpToLine;
54 -->
55 </script>
56 </head>
57 <body onload='JumpToLine();'>
58 <a href='https://github.com/akkartik/mu/blob/main/502test.mu'>https://github.com/akkartik/mu/blob/main/502test.mu</a>
59 <pre id='vimCodeElement'>
60 <span id="L1" class="LineNr"> 1 </span><span class="muComment"># print msg to screen if a != b, otherwise print &quot;.&quot;</span>
61 <span id="L2" class="LineNr"> 2 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='502test.mu.html#L2'>check-ints-equal</a></span> _a: int, b: int, msg: (addr array byte) <span class="Delimiter">{</span>
62 <span id="L3" class="LineNr"> 3 </span> <span class="PreProc">var</span> a/eax: int <span class="Special">&lt;-</span> copy _a
63 <span id="L4" class="LineNr"> 4 </span> compare a, b
64 <span id="L5" class="LineNr"> 5 </span> <span class="Delimiter">{</span>
65 <span id="L6" class="LineNr"> 6 </span> <span class="PreProc">break-if-!=</span>
66 <span id="L7" class="LineNr"> 7 </span> <a href='501draw-text.mu.html#L332'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;.&quot;</span>, <span class="Constant">3</span>/fg=cyan, <span class="Constant">0</span>/bg
67 <span id="L8" class="LineNr"> 8 </span> <span class="PreProc">return</span>
68 <span id="L9" class="LineNr"> 9 </span> <span class="Delimiter">}</span>
69 <span id="L10" class="LineNr">10 </span> <a href='501draw-text.mu.html#L332'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, msg, <span class="Constant">3</span>/fg=cyan, <span class="Constant">0</span>/bg
70 <span id="L11" class="LineNr">11 </span> <a href='501draw-text.mu.html#L65'>move-cursor-to-left-margin-of-next-line</a> <span class="Constant">0</span>/screen
71 <span id="L12" class="LineNr">12 </span> <a href='104test.subx.html#L5'>count-test-failure</a>
72 <span id="L13" class="LineNr">13 </span><span class="Delimiter">}</span>
73 <span id="L14" class="LineNr">14 </span>
74 <span id="L15" class="LineNr">15 </span><span class="PreProc">fn</span> <span class="muTest"><a href='502test.mu.html#L15'>test-check-ints-equal</a></span> <span class="Delimiter">{</span>
75 <span id="L16" class="LineNr">16 </span> <a href='502test.mu.html#L2'>check-ints-equal</a> <span class="Constant">0</span>, <span class="Constant">0</span>, <span class="Constant">&quot;abc&quot;</span>
76 <span id="L17" class="LineNr">17 </span><span class="Delimiter">}</span>
77 <span id="L18" class="LineNr">18 </span>
78 <span id="L19" class="LineNr">19 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='502test.mu.html#L19'>check</a></span> _a: boolean, msg: (addr array byte) <span class="Delimiter">{</span>
79 <span id="L20" class="LineNr">20 </span> <span class="PreProc">var</span> a/eax: int <span class="Special">&lt;-</span> copy _a
80 <span id="L21" class="LineNr">21 </span> compare a, <span class="Constant">0</span>/false
81 <span id="L22" class="LineNr">22 </span> <span class="Delimiter">{</span>
82 <span id="L23" class="LineNr">23 </span> <span class="PreProc">break-if-=</span>
83 <span id="L24" class="LineNr">24 </span> <a href='501draw-text.mu.html#L332'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;.&quot;</span>, <span class="Constant">3</span>/fg=cyan, <span class="Constant">0</span>/bg
84 <span id="L25" class="LineNr">25 </span> <span class="PreProc">return</span>
85 <span id="L26" class="LineNr">26 </span> <span class="Delimiter">}</span>
86 <span id="L27" class="LineNr">27 </span> <a href='501draw-text.mu.html#L332'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, msg, <span class="Constant">3</span>/fg=cyan, <span class="Constant">0</span>/bg
87 <span id="L28" class="LineNr">28 </span> <a href='501draw-text.mu.html#L65'>move-cursor-to-left-margin-of-next-line</a> <span class="Constant">0</span>/screen
88 <span id="L29" class="LineNr">29 </span> <a href='104test.subx.html#L5'>count-test-failure</a>
89 <span id="L30" class="LineNr">30 </span><span class="Delimiter">}</span>
90 <span id="L31" class="LineNr">31 </span>
91 <span id="L32" class="LineNr">32 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='502test.mu.html#L32'>check-not</a></span> _a: boolean, msg: (addr array byte) <span class="Delimiter">{</span>
92 <span id="L33" class="LineNr">33 </span> <span class="PreProc">var</span> a/eax: int <span class="Special">&lt;-</span> copy _a
93 <span id="L34" class="LineNr">34 </span> compare a, <span class="Constant">0</span>/false
94 <span id="L35" class="LineNr">35 </span> <span class="Delimiter">{</span>
95 <span id="L36" class="LineNr">36 </span> <span class="PreProc">break-if-!=</span>
96 <span id="L37" class="LineNr">37 </span> <a href='501draw-text.mu.html#L332'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, <span class="Constant">&quot;.&quot;</span>, <span class="Constant">3</span>/fg=cyan, <span class="Constant">0</span>/bg
97 <span id="L38" class="LineNr">38 </span> <span class="PreProc">return</span>
98 <span id="L39" class="LineNr">39 </span> <span class="Delimiter">}</span>
99 <span id="L40" class="LineNr">40 </span> <a href='501draw-text.mu.html#L332'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>/screen, msg, <span class="Constant">3</span>/fg=cyan, <span class="Constant">0</span>/bg
100 <span id="L41" class="LineNr">41 </span> <a href='501draw-text.mu.html#L65'>move-cursor-to-left-margin-of-next-line</a> <span class="Constant">0</span>/screen
101 <span id="L42" class="LineNr">42 </span> <a href='104test.subx.html#L5'>count-test-failure</a>
102 <span id="L43" class="LineNr">43 </span><span class="Delimiter">}</span>
103 </pre>
104 </body>
105 </html>
106 <!-- vim: set foldmethod=manual : -->