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="Subtype_Valid_5"
======
>>> main.whiley


type nat is (int x) where x > 0

type tup is ({nat f, int g} r) where r.g > r.f

type arr is (tup[] xs) where some { i in 0..|xs| | xs[i].f == 1 }

public export method test() :
    arr x = [{f: 1, g: 3}, {f: 1, g: 8}]
    x[0].f = 2
    assume x == [{f: 2, g: 3}, {f: 1, g: 8}]

---