(module main)

(fn choose ((value i32)) -> i32
  (if (< value 3)
    10
    20))

(test "if chooses then"
  (= (choose 2) 10))

(test "if chooses else"
  (= (choose 4) 20))

(test "if returns bool"
  (if (< 1 2)
    true
    false))

(fn main () -> i32
  (choose 2))
