(lispkit test)
Test groups
(test-begin "Test group example")
(test "Sum of first 10 integers" 45 (apply + (iota 10)))
(test 64 (gcd 1024 192))
(test-approx 1.414 (sqrt 2.0))
(test-end)ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Basic unit tests
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
[PASS] Sum of first 10 integers
[PASS] (gcd 1024 192)
[FAIL] (sqrt 2.0): expected 1.414 but received 1.414213562373095
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Basic unit tests
β 3 tests completed in 0.001 seconds
β 2 (66.66%) tests passed
β 1 (33.33%) tests failed
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββDefining test groups
Comparing actual with expected values
Test utilities
Last updated