Difference between revisions of "AssertTrue"
From ApCoCoAWiki
(New page: <command> <title>AssertTrue</title> <short_description>Checks if a condition is true.</short_description> <syntax> AUnit.AssertTrue(Condition: BOOL, ErrMsg: STRING) </syntax> <description...) |
|||
(One intermediate revision by the same user not shown) | |||
Line 3: | Line 3: | ||
<short_description>Checks if a condition is true.</short_description> | <short_description>Checks if a condition is true.</short_description> | ||
<syntax> | <syntax> | ||
− | + | $apcocoa/ts/assert.AssertTrue(Condition: BOOL, ErrMsg: STRING) | |
</syntax> | </syntax> | ||
<description> | <description> | ||
− | This function checks if the | + | This function checks if the boolean 'Condition' is true. If not it throws an error and prints the error message 'ErrMsg'. |
<itemize> | <itemize> |
Latest revision as of 17:32, 22 June 2010
AssertTrue
Checks if a condition is true.
Syntax
$apcocoa/ts/assert.AssertTrue(Condition: BOOL, ErrMsg: STRING)
Description
This function checks if the boolean 'Condition' is true. If not it throws an error and prints the error message 'ErrMsg'.
@param Condition: Boolean value of a condition
@param ErrMsg: Error message
Example
$apcocoa/ts/assert.AssertTrue(x=x, "x does not equal x.");