Next: , Previous: text parse-lalr, Up: Top


45 (unit-test)

45.1 Overview

45.2 Usage

— Function: assert-equal expected got

— Function: assert-true got

— Function: assert-numeric-= expected got precision

— Class: <test-result>

— Generic: tests-run
— Method: tests-run (o <test-result>)

— Generic: tests-failed
— Method: tests-failed (o <test-result>)

— Generic: tests-log
— Method: tests-log (o <test-result>)

— Generic: failure-messages
— Method: failure-messages (o <test-result>)

— Generic: test-started
— Method: test-started (self <test-result>) (description <string>)

— Generic: test-failed
— Method: test-failed (self <test-result>) (description <string>)

— Generic: summary
— Method: summary (self <test-result>)

— Class: <test-case>

— Generic: name
— Method: name (o <test-suite>)
— Method: name (o <test-case>)

— Generic: set-up-test
— Method: set-up-test (self <test-case>)

— Generic: tear-down-test
— Method: tear-down-test (self <test-case>)

— Generic: run
— Method: run (self <test-suite>) (result <test-result>)
— Method: run (self <test-case>) (result <test-result>)

— Class: <test-suite>

— Generic: tests
— Method: tests (o <test-suite>)

— Generic: add
— Method: add (self <test-suite>) (suite <test-suite>)
— Method: add (self <test-suite>) (test <test-case>)

— Function: run-all-defined-test-cases

— Function: exit-with-summary result

— Special Form: assert-exception expression