about summary refs log blame commit diff stats
path: root/tutorial/task11.mu
blob: 0b9796e72c769ccb2f48b39a204549e45f66faac (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14













                                                                 
fn difference a: int, b: int -> _/eax: int {
}

fn test-difference {
  var result/eax: int <- difference 5, 3
  check-ints-equal result, 2, "F - difference works"
  result <- difference 3, 5
  check-ints-equal result, 2, "F - difference is always positive"
  result <- difference 6, 6
  check-ints-equal result, 0, "F - difference can be 0"
}

fn main screen: (addr screen) {
}