diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-05-14 16:04:45 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-05-14 16:04:45 -0700 |
commit | 65361948ca7975553757a0e0df4ac7352413044c (patch) | |
tree | 22063c089f67cb0d82623f2edc2c16b7e4389d41 /html/076scenario_keyboard_test.mu.html | |
parent | 64586540eccbc0880341782d329b419ab9d002de (diff) | |
download | mu-65361948ca7975553757a0e0df4ac7352413044c.tar.gz |
1376 - update github docs
Diffstat (limited to 'html/076scenario_keyboard_test.mu.html')
-rw-r--r-- | html/076scenario_keyboard_test.mu.html | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/html/076scenario_keyboard_test.mu.html b/html/076scenario_keyboard_test.mu.html index 233ae5eb..00081624 100644 --- a/html/076scenario_keyboard_test.mu.html +++ b/html/076scenario_keyboard_test.mu.html @@ -2,7 +2,7 @@ <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> -<title>Mu - 076scenario_keyboard_test.mu</title> +<title>~/Desktop/s/mu/076scenario_keyboard_test.mu</title> <meta name="Generator" content="Vim/7.4"> <meta name="plugin-version" content="vim7.4_v1"> <meta name="syntax" content="none"> @@ -14,7 +14,7 @@ pre { white-space: pre-wrap; font-family: monospace; color: #d0d0d0; background- body { font-family: monospace; color: #d0d0d0; background-color: #000000; } * { font-size: 1em; } .Comment { color: #8080ff; } -.Delimiter { color: #c000c0; } +.Constant { color: #008080; } .Special { color: #ff6060; } --> </style> @@ -31,25 +31,25 @@ body { font-family: monospace; color: #d0d0d0; background-color: #000000; } <span class="Comment"># scenario_keyboard.mu</span> <span class="Comment"># Tests for keyboard interface.</span> -scenario read-key-in-mu <span class="Delimiter">[</span> - assume-keyboard <span class="Delimiter">[</span>abc<span class="Delimiter">]</span> - run <span class="Delimiter">[</span> +scenario read-key-in-mu [ + assume-keyboard <span class="Constant">[abc]</span> + run [ 1:character, 2:boolean, keyboard:address<span class="Special"> <- </span>read-key keyboard:address 3:character, 4:boolean, keyboard:address<span class="Special"> <- </span>read-key keyboard:address 5:character, 6:boolean, keyboard:address<span class="Special"> <- </span>read-key keyboard:address 7:character, 8:boolean, keyboard:address<span class="Special"> <- </span>read-key keyboard:address - <span class="Delimiter">]</span> - memory-should-contain <span class="Delimiter">[</span> + ] + memory-should-contain [ 1<span class="Special"> <- </span>97 <span class="Comment"># 'a'</span> - 2<span class="Special"> <- </span>1 <span class="Comment"># first read-key call found a character</span> + 2<span class="Special"> <- </span>1 3<span class="Special"> <- </span>98 <span class="Comment"># 'b'</span> - 4<span class="Special"> <- </span>1 <span class="Comment"># second read-key call found a character</span> + 4<span class="Special"> <- </span>1 5<span class="Special"> <- </span>99 <span class="Comment"># 'c'</span> - 6<span class="Special"> <- </span>1 <span class="Comment"># third read-key call found a character</span> - 7<span class="Special"> <- </span>0 - 8<span class="Special"> <- </span>0 <span class="Comment"># fourth read-key call didn't find a character</span> - <span class="Delimiter">]</span> -<span class="Delimiter">]</span> + 6<span class="Special"> <- </span>1 + 7<span class="Special"> <- </span>0 <span class="Comment"># eof</span> + 8<span class="Special"> <- </span>1 + ] +] </pre> </body> </html> |