Skip to content

Latest commit

 

History

History
47 lines (36 loc) · 735 Bytes

README.md

File metadata and controls

47 lines (36 loc) · 735 Bytes

suite

is a simple test suite abstraction.

Usage

(load "[email protected]:carpentry-org/[email protected]")

(use Test)

(Suite.defsuite addition
  (assert-equal test
                2
                (+ 1 1)
                "integer addition works")
)

(Suite.defsuite subtraction
  (assert-equal test
                1
                (- 2 1)
                "integer subtraction works")
)

; will compile and run all the suites
(Suite.run-all)

will produce (colorized in your terminal):

Running suite subtraction
Test 'integer subtraction works' passed
Results:
  |=|
  Passed: 1    Failed: 0
Running suite addition
Test 'integer addition works' passed
Results:
  |=|
  Passed: 1    Failed: 0

Cheers!