whiley_test_file 0.6.2

An API for manipulating test files for the Whiley Programming Language.
Documentation
original.name="TypeEquals_Valid_57"
======
>>> main.whiley
type nat is (int x) where x >= 0

function f(int|null x) -> nat:
    //
    if x is null || x < 0:
        return 0
    else:
        return (nat) x

public export method test():
    assume f(null) == 0
    assume f(-1) == 0
    assume f(0) == 0
    assume f(1) == 1
    assume f(2) == 2

---