Kaya 0.5.3 reference for Builtins::assert

List of functions and data types in Builtins

Void assert(Bool test, String msg="Unspecified Assertion Failure")

Arguments

Usage

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 module.

Related

kaya@kayalang.org | Last modified 29 November 2011 | Supported by Durham CompSoc | Powered by Kaya