about summary refs log tree commit diff stats
path: root/linux/401test.mu
blob: 03acabf1bc3469b511ddd4437e2175bd657cbfdf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
# Some helpers for Mu tests.

fn check val: boolean, msg: (addr array byte) {
  var tmp/eax: int <- copy val
  check-ints-equal tmp, 1, msg
}

fn check-not val: boolean, msg: (addr array byte) {
  var tmp/eax: int <- copy val
  check-ints-equal tmp, 0, msg
}