whiley_test_file 0.6.2

An API for manipulating test files for the Whiley Programming Language.
Documentation
original.name="TypeEquals_Valid_44"
======
>>> main.whiley
type imsg is int | {int op} | {int[] msg}

function getMessage(imsg m) -> int[]|int:
    if m is {int[] msg}:
        return m.msg
    else:
        if m is {int op}:
            return m.op
        else:
            return m

public export method test() :
    assume getMessage({msg: "HELLO WORLD"}) == "HELLO WORLD"
    assume getMessage(1) == 1
    assume getMessage({op: 123}) == 123

---