mu/linux/401test.mu
Kartik K. Agaram cec5ef31b3 update vocabulary documentation
Top-level and linux/ now have separate vocabulary.md files.
2021-03-08 23:50:35 -08:00

12 lines
259 B
Forth

# 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
}