diff options
Diffstat (limited to 'stdlib/source/documentation/lux/test/unit.lux')
-rw-r--r-- | stdlib/source/documentation/lux/test/unit.lux | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/stdlib/source/documentation/lux/test/unit.lux b/stdlib/source/documentation/lux/test/unit.lux index 2b5e9441a..e3d8b492a 100644 --- a/stdlib/source/documentation/lux/test/unit.lux +++ b/stdlib/source/documentation/lux/test/unit.lux @@ -18,32 +18,32 @@ ($.definition /.and "Sequencing combinator." - [(and left right)]) + ($.example (and left right))) ($.definition /.test "Check that a condition is #1, and fail with the given message otherwise." - [(test message condition)]) + ($.example (test message condition))) ($.definition /.coverage (format "Specifies a test as covering one or more definitions." \n "Adds to the test tally information to track which definitions have been tested.") - [(coverage [definition/0 definition/1 ,,, definition/N] - (is Bit - (some "computation")))]) + ($.example (coverage [definition/0 definition/1 ,,, definition/N] + (is Bit + (some "computation"))))) ($.definition /.for (format "Specifies a context for tests as covering one or more definitions." \n "Adds to the test tally information to track which definitions have been tested.") - [(for [definition/0 definition/1 ,,, definition/N] - (is Test - some_test))]) + ($.example (for [definition/0 definition/1 ,,, definition/N] + (is Test + some_test)))) ($.definition /.covering (format "Specifies the module being covered by a test." \n "Adds tracking information to the tally to know which exported definitions in the module need to be covered.") - [(covering .._ - (is Test - some_test))]) + ($.example (covering .._ + (is Test + some_test)))) ($.definition /.context) ($.definition /.success) |