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


function extract(int[] ls) -> (int r)
ensures r >= |ls|:
    //
    int i = 0
    while i < |ls|:
        i = i + 1
    return i

public export method test() :
    int rs = extract([-2, -3, 1, 2, -23, 3, 2345, 4, 5])
    assume rs == 9

---