Ejemplo n.º 1
0
def test_keyval():
    ctx = Qit()
    kv = KeyValue(Int() * Int(), Int())
    assert ctx.run(kv.key_fn(kv.value(((22, 33), 11)))) == (22, 33)
    assert ctx.run(kv.value_fn(kv.value(((22, 33), 11)))) == 11