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
original.name="Quantifiers_Valid_1"
======
>>> main.whiley


function f(int[] xs) -> int[]
requires all { i in 0..|xs| | xs[i] >= 0 }:
    return xs

public export method test() :
    int[] ys = [1, 2, 3]
    int[] zs = ys
    assume f(zs) == [1,2,3]
    assert ys == [1,2,3]

---