class Test def main .testPair1 .testPair2 .testKeyValuePair def testPair1 pi = Pair(2, 3) a, b = pi .takeInt(a) .takeInt(b) assert a == 2 and b == 3 def testPair2 pid = Pair(2, 3.0) a, b = pid .takeInt(a) .takeDecimal(b) assert a == 2 and b == 3.0 def testKeyValuePair pid = KeyValuePair(2, 3.0) k, v = pid .takeInt(k) .takeDecimal(v) assert k == 2 and v == 3.0 def takeInt(i as int) pass def takeDecimal(d as decimal) pass