whiley_test_file 0.6.2

An API for manipulating test files for the Whiley Programming Language.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
original.name="Coercion_Valid_12"
======
>>> main.whiley
type pos is (int x) where x >= 0
type neg is (int x) where x < 0

type R1 is {pos|neg f}

function f({pos f} x) -> (R1 r)
ensures r == x:
    return x

public export method test():
    assert f({f:0}) == {f:0}
---