about summary refs log tree commit diff stats
path: root/html/051scenario_test.mu.html
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-05-06 00:19:03 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-05-06 00:19:03 -0700
commit672e3e50c6ed6de161e40aa256c3fc0f2b1f7cf9 (patch)
tree5fa3d82e40137b15dec2941a3446e838ce43d3e5 /html/051scenario_test.mu.html
parent20d1c9057a559ce8db83bbc2787ca91348bcb16f (diff)
downloadmu-672e3e50c6ed6de161e40aa256c3fc0f2b1f7cf9.tar.gz
1279 - colorized rendering of the source files
Diffstat (limited to 'html/051scenario_test.mu.html')
-rw-r--r--html/051scenario_test.mu.html103
1 files changed, 103 insertions, 0 deletions
diff --git a/html/051scenario_test.mu.html b/html/051scenario_test.mu.html
new file mode 100644
index 00000000..f5724398
--- /dev/null
+++ b/html/051scenario_test.mu.html
@@ -0,0 +1,103 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+<head>
+<meta http-equiv="content-type" content="text/html; charset=UTF-8">
+<title>~/Desktop/s/mu/051scenario_test.mu.html</title>
+<meta name="Generator" content="Vim/7.4">
+<meta name="plugin-version" content="vim7.4_v1">
+<meta name="syntax" content="none">
+<meta name="settings" content="use_css,pre_wrap,no_foldcolumn,expand_tabs,prevent_copy=">
+<meta name="colorscheme" content="minimal">
+<style type="text/css">
+<!--
+pre { white-space: pre-wrap; font-family: monospace; color: #d0d0d0; background-color: #000000; }
+body { font-family: monospace; color: #d0d0d0; background-color: #000000; }
+* { font-size: 1em; }
+.Comment { color: #8080ff; }
+.Delimiter { color: #c000c0; }
+.Special { color: #ff6060; }
+-->
+</style>
+
+<script type='text/javascript'>
+<!--
+
+-->
+</script>
+</head>
+<body>
+<pre id='vimCodeElement'>
+<span class="Comment"># tests for 'scenario' in previous layer</span>
+
+scenario first_scenario_in_mu <span class="Delimiter">[</span>
+  run <span class="Delimiter">[</span>
+    1:integer<span class="Special"> &lt;- </span>add 2:literal, 2:literal
+  <span class="Delimiter">]</span>
+  memory-should-contain <span class="Delimiter">[</span>
+    1<span class="Special"> &lt;- </span>4
+  <span class="Delimiter">]</span>
+<span class="Delimiter">]</span>
+
+scenario scenario_with_comment_in_mu <span class="Delimiter">[</span>
+  run <span class="Delimiter">[</span>
+    <span class="Comment"># comment</span>
+    1:integer<span class="Special"> &lt;- </span>add 2:literal, 2:literal
+  <span class="Delimiter">]</span>
+  memory-should-contain <span class="Delimiter">[</span>
+    1<span class="Special"> &lt;- </span>4
+  <span class="Delimiter">]</span>
+<span class="Delimiter">]</span>
+
+scenario scenario_with_multiple_comments_in_mu <span class="Delimiter">[</span>
+  run <span class="Delimiter">[</span>
+    <span class="Comment"># comment1</span>
+    <span class="Comment"># comment2</span>
+    1:integer<span class="Special"> &lt;- </span>add 2:literal, 2:literal
+  <span class="Delimiter">]</span>
+  memory-should-contain <span class="Delimiter">[</span>
+    1<span class="Special"> &lt;- </span>4
+  <span class="Delimiter">]</span>
+<span class="Delimiter">]</span>
+
+scenario check_string_in_memory <span class="Delimiter">[</span>
+  run <span class="Delimiter">[</span>
+    1:integer<span class="Special"> &lt;- </span>copy 3:literal
+    2:character<span class="Special"> &lt;- </span>copy 97:literal  <span class="Comment"># 'a'</span>
+    3:character<span class="Special"> &lt;- </span>copy 98:literal  <span class="Comment"># 'b'</span>
+    4:character<span class="Special"> &lt;- </span>copy 99:literal  <span class="Comment"># 'c'</span>
+  <span class="Delimiter">]</span>
+  memory-should-contain <span class="Delimiter">[</span>
+    1:string<span class="Special"> &lt;- </span><span class="Delimiter">[</span>abc<span class="Delimiter">]</span>
+  <span class="Delimiter">]</span>
+<span class="Delimiter">]</span>
+
+scenario check_trace <span class="Delimiter">[</span>
+  run <span class="Delimiter">[</span>
+    1:integer<span class="Special"> &lt;- </span>add 2:literal, 2:literal
+  <span class="Delimiter">]</span>
+  trace-should-contain <span class="Delimiter">[</span>
+    mem: storing 4 in location 1
+  <span class="Delimiter">]</span>
+<span class="Delimiter">]</span>
+
+scenario check_trace_negative <span class="Delimiter">[</span>
+  run <span class="Delimiter">[</span>
+    1:integer<span class="Special"> &lt;- </span>add 2:literal, 2:literal
+  <span class="Delimiter">]</span>
+  trace-should-not-contain <span class="Delimiter">[</span>
+    mem: storing 5 in location 1
+  <span class="Delimiter">]</span>
+<span class="Delimiter">]</span>
+
+scenario check_trace_instruction <span class="Delimiter">[</span>
+  run <span class="Delimiter">[</span>
+    trace <span class="Delimiter">[</span>foo<span class="Delimiter">]</span>, <span class="Delimiter">[</span>aaa<span class="Delimiter">]</span>
+  <span class="Delimiter">]</span>
+  trace-should-contain <span class="Delimiter">[</span>
+    foo: aaa
+  <span class="Delimiter">]</span>
+<span class="Delimiter">]</span>
+</pre>
+</body>
+</html>
+<!-- vim: set foldmethod=manual : -->