On this page:
check-expect
check-within
check-error

2.8 "testing"

(include-book "testing" :dir :teachpacks)

This teachpack provides a graphical interface for unit tests.

(check-expect actual expected)
Tests (equal actual expected).

(check-within actual expected delta)
Tests (and (<= (- expected delta) actual) (<= actual (+ expected delta))).

(check-error expr)
Tests that expr triggers a guard violation.