whiley_test_file 0.6.2

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


type nat is (int x) where x >= 0

function f(nat pos, int[] input) -> bool|null:
    if pos >= |input|:
        return null
    else:
        bool flag = input[pos] == 'O'
        return flag

public export method test():
    assume f(0, "Ox") == true
    assume f(0, "1x") == false
    assume f(1, "O") == null

---