This module provides test forms for use in Racket programs, as well as parameters to configure the behavior of test reports.
Each check form may only occur at the top-level; results are collected and reported by the test function. Note that the check forms only register checks to be performed. The checks are actually run by the test function.
(check-expect (test any/c) (expected any/c))
It is an error for test or expected to produce a function value or an inexact number.
(check-within (test any/c) (expected any/c) (delta number?))
It is an error for test or expected to produce a function value.
(check-member-of (test any/c) (expected any/c) ...)
It is an error for test or any of the expected expression to produce a function value or an inexact number.
(check-range (test number/c) (min number/c) (max number/c))
(test-format format) → void? format : (any/c . -> . string?)
This module requires GRacket and produces an independent window when displaying test results. It provides the same bindings as test-engine/racket-tests.
(To be written.)