UnitTestDescription

Typestatement
DictionaryLCB
LibraryLiveCode Builder
Syntax
test <Description> when <Condition>
Associationscom.livecode.unittest
Summary

Make a unit test assertion with a description

Parameters
NameTypeDescription
Condition

An expression that evaluates to true if the test is successful

Example
test "integer greater than" when 2 > 1
Description

Make a unit test assertion. The test is considered to have passed if Condition is true. The Description string is a short message that summarises what the test is checking.

Tagsunit tests,unit tests