about summary refs log tree commit diff stats
path: root/401test.mu
diff options
context:
space:
mode:
Diffstat (limited to '401test.mu')
-rw-r--r--401test.mu11
1 files changed, 11 insertions, 0 deletions
diff --git a/401test.mu b/401test.mu
new file mode 100644
index 00000000..65b765df
--- /dev/null
+++ b/401test.mu
@@ -0,0 +1,11 @@
+# Some helpers for Mu tests.
+
+fn check-true val: boolean, msg: (addr array byte) {
+  var tmp/eax: int <- copy val
+  check-ints-equal tmp, 1, msg
+}
+
+fn check-false val: boolean, msg: (addr array byte) {
+  var tmp/eax: int <- copy val
+  check-ints-equal tmp, 0, msg
+}