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="Reference_Valid_36"
======
>>> main.whiley
type Node is &{ List next, int data }
type List is null | Node

method next(Node r):
    skip

public export method test():
    List p = new Node{next: null, data: 0}
    List q =  new Node{next: null, data: 1}
    assert q->data == 1
    next(p)
    assert p->next != q
    assert q->data == 1

---