ceremonyclient/bedlam/testsuite/lang/assign2.qcl
Cassandra Heart dbd95bd9e9
v2.1.0 (#439)
* v2.1.0 [omit consensus and adjacent] - this commit will be amended with the full release after the file copy is complete

* 2.1.0 main node rollup
2025-09-30 02:48:15 -05:00

19 lines
238 B
Go

// -*- go -*-
package main
// @Test 1 7 = 1 7
// @Test 7 1 = 1 7
func main(a, b int32) (int, int) {
min, max := minMax(a, b)
return min, max
}
func minMax(a, b int) (int, int) {
if a < b {
return a, b
} else {
return b, a
}
}