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
16
17
original.name="Template_Valid_20"
======
>>> main.whiley
function project<T>({T f} rec) -> (T r)
ensures rec.f == r:
    return rec.f

public export method test():
    {int f} ri = {f:123}
    {bool f} rb = {f:false}
    {{int g} f} rri = {f:{g:234}}
    // 
    assert project(ri) == 123
    assert project(rb) == false
    assert project(rri) == {g:234}

---