about summary refs log tree commit diff stats
path: root/linux/401test.mu
diff options
context:
space:
mode:
Diffstat (limited to 'linux/401test.mu')
-rw-r--r--linux/401test.mu11
1 files changed, 11 insertions, 0 deletions
diff --git a/linux/401test.mu b/linux/401test.mu
new file mode 100644
index 00000000..65b765df
--- /dev/null
+++ b/linux/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
+}