diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-04-17 11:00:56 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-04-17 11:00:56 -0700 |
commit | c495d2ac7ca0d7f1c1a9bbb7d1ad5072a7eface5 (patch) | |
tree | 95db0f8d742a87eba6c15833d0ac9b982e98174d /cpp/053scenario_trace_test.mu | |
parent | 353a452e691a8b55e28d7b3b1d09cf294265eba0 (diff) | |
download | mu-c495d2ac7ca0d7f1c1a9bbb7d1ad5072a7eface5.tar.gz |
1075
Diffstat (limited to 'cpp/053scenario_trace_test.mu')
-rw-r--r-- | cpp/053scenario_trace_test.mu | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/cpp/053scenario_trace_test.mu b/cpp/053scenario_trace_test.mu new file mode 100644 index 00000000..abf0ef9a --- /dev/null +++ b/cpp/053scenario_trace_test.mu @@ -0,0 +1,27 @@ +# tests for trace-checking scenario in previous layer +scenario first_scenario_checking_trace [ + run [ + 1:integer <- add 2:literal, 2:literal + ] + trace should contain [ + mem: storing 4 in location 1 + ] +] + +scenario first_scenario_checking_trace_negative [ + run [ + 1:integer <- add 2:literal, 2:literal + ] + trace should not contain [ + mem: storing 5 in location 1 + ] +] + +scenario trace_in_mu [ + run [ + trace [foo], [aaa] + ] + trace should contain [ + foo: aaa + ] +] |