Skip to content

carpentry-org/suite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

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!

About

a simple test suite abstraction

Resources

Stars

Watchers

Forks

Packages

No packages published