Examples · learn/14-tests · 204 of 339
first.test
tin run examples/learn/14-tests/first.test.tinfn add(a: int, b: int): int => a + b
test "adding two numbers" {
assertEq(add(2, 3), 5)
}
test "adding zero changes nothing" {
assertEq(add(7, 0), 7)
}