1Testing.add(3kaya) Kaya module reference Testing.add(3kaya)
2
3
4
6 Testing::add - Add a test function.
7
9 Void add( Void() test, Int num=1, String name="" )
10
12 test A test function. Test functions must return nothing and take no
13 parameters. They should finish with a call to Builtins.assert (3kaya)
14 for the test conditions.
15
16 num The number of times to run the test (useful if random values are
17 being used). Defaults to 1.
18
19 name A descriptive name for the test, which defaults to the empty
20 string.
21
23 Add a test function that runs a test case, finishing with a call to
24 'Builtins::assert'
25
27 Kaya standard library by Edwin Brady, Chris Morris and others
28 (kaya@kayalang.org). For further information see http://kayalang.org/
29
31 The Kaya standard library is free software; you can redistribute it
32 and/or modify it under the terms of the GNU Lesser General Public
33 License (version 2.1 or any later version) as published by the Free
34 Software Foundation.
35
37 Testing.init (3kaya)
38 Testing.run (3kaya)
39
40
41
42Kaya December 2010 Testing.add(3kaya)