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
18
original.name="ConstrainedRecord_Invalid_1"
js.execute.ignore=true
======
>>> main.whiley

type tup is {int y, int x}

type point is ({int y, int x} r) where (r.x > 0) && (r.y > 0)

function f(point p) -> point:
    return p

public export method test(): 
    tup z = {y: -2, x: 1}
    point p = f((point) z)
---
E702 main.whiley 11,16:24
E716 main.whiley 11,14:25