class Test shared def main i as int s as String = '' d = Dictionary() d.add('foo', 1) x = d['foo'] .checkInt(x, 1) for value in d.values .checkInt(value, 1) assert value == 1 for key in d.keys .checkString(key, 'foo') assert key.trim == 'foo' for pair in d .checkString(pair.key, 'foo') .checkInt(pair.value, 1) s = pair.key i = pair.value CobraCore.noOp(s, i) def checkString(a as String, b as String) assert a == b def checkInt(a as int, b as int) assert a == b