whiley_test_file 0.6.2

An API for manipulating test files for the Whiley Programming Language.
Documentation
original.name="UnionType_Valid_23"
======
>>> main.whiley

type IntList is {int op, bool[] rest} | {int op, int mode}

function f(IntList y) -> IntList:
    return y

public export method test() :
    IntList x = (IntList) {op: 1, rest: [false]}
    if 0 == 10:
        x = {op: 0, rest: [false]}
    if x is {int op, bool[] rest}:
        x.op = 123
    else:
        x.op = 123
    assume f(x) == {op: 123, rest: [false]}

---