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.

syntax

(check-expect actual expected)

Tests (equal actual expected).

syntax

(check-within actual expected delta)

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

syntax

(check-error expr)

Tests that expr triggers a guard violation.