DOCS: Clarified the reference for assert statements.

This commit is contained in:
Jeremy Wall 2019-02-04 19:29:46 -06:00
parent 545ab62403
commit 3c91f48415

View File

@ -46,7 +46,10 @@ ok field that is either true or false and a desc field that is a string. Assert
statements are noops except when executing `ucg test`. They give you a way to statements are noops except when executing `ucg test`. They give you a way to
assert certains properties about your data and can be used as a form of unit assert certains properties about your data and can be used as a form of unit
testing for your configurations. It starts with the `assert` keyword followed testing for your configurations. It starts with the `assert` keyword followed
by a valid ucg expression. by a valid ucg expression that resolves to a tuple with an `ok` field and a
`desc` field. The `ok` field must contain a boolean value. The `desc` field
must contain a description for this assertion. The `ok` field is `true` the
assert test succeeds. When it is `false` the assert test fails.
``` ```
assert { assert {