1Builtins.assert(3kaya) Kaya module reference Builtins.assert(3kaya)
2
3
4
6 Builtins::assert - Check the result of a test.
7
9 Void assert( Bool test, String msg="Unspecified Assertion Failure" )
10
12 test The test result
13
14 msg The failure message, if any.
15
17 Check the result of a test. On failure, throw an exception with the
18 given message.
19
20 This function is used for %test module tests, and for testing using the
21 Testing(3kaya) module.
22
24 Kaya standard library by Edwin Brady, Chris Morris and others
25 (kaya@kayalang.org). For further information see http://kayalang.org/
26
28 The Kaya standard library is free software; you can redistribute it
29 and/or modify it under the terms of the GNU Lesser General Public
30 License (version 2.1 or any later version) as published by the Free
31 Software Foundation.
32
34 Testing.add (3kaya)
35 Testing.run (3kaya)
36
37
38
39Kaya December 2010 Builtins.assert(3kaya)