whiley_test_file 0.6.2

An API for manipulating test files for the Whiley Programming Language.
Documentation
original.name="Switch_Valid_12"
======
>>> main.whiley


function f(int[] x) -> int:
    switch x:
        case [0;0]:
            return 0
        case [1]:
            return -1
    return 10

public export method test() :
    assume f([0;0]) == 0
    assume f([1]) == -1
    assume f([3]) == 10
    assume f([1, 2, 3]) == 10

---