11 lines
174 B
Text
11 lines
174 B
Text
|
|
assertEq((1, 2), (1, 2))
|
|
|
|
assertEq(typeof((1,)), typeof((1,)))
|
|
assertEq((1,), (1,))
|
|
|
|
fn neighbours(n: int) -> (int, int) {
|
|
(n-1, n+1)
|
|
}
|
|
|
|
assertEq(neighbours(2), (1, 3))
|