Rechercher une page de manuel
Builtins.assert.3kaya
Langue: en
Version: May 2010 (fedora - 01/12/10)
Section: 3 (Bibliothèques de fonctions)
NAME
Builtins::assert - Check the result of a test.SYNOPSIS
Void assert( Bool test, String msg="Unspecified Assertion Failure" )ARGUMENTS
test The test result
msg The failure message, if any.
DESCRIPTION
Check the result of a test. On failure, throw an exception with the given message.
This function is used for %test module tests, and for testing using the Testing(3kaya) module.
AUTHORS
Kaya standard library by Edwin Brady, Chris Morris and others (kaya@kayalang.org). For further information see http://kayalang.org/LICENSE
The Kaya standard library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (version 2.1 or any later version) as published by the Free Software Foundation.RELATED
Testing.add(3kaya)
Testing.run(3kaya)
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre