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
js.compile.ignore=true
=====
>>> main.whiley
public export method test():
   int[] xs = [1,2,3]
   int[] ys = xs[1:=4][2:=5]
   // check xs unchanged
   assert xs[0] == 1 
   assert xs[1] == 2
   assert xs[2] == 3
   // check ys changed
   assert ys[0] == 1
   assert ys[1] == 4
   assert ys[2] == 5
   // Final check
   assert ys == [1,4,5]
---