Created
November 28, 2018 03:18
-
-
Save lagagain/1d2e416067f5e32f7b15e7d20e4a72c3 to your computer and use it in GitHub Desktop.
Try use FiveAM which is a test framework for Common Lisp.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;(ql:quickload :fiveam) | |
(require :fiveam) | |
(defpackage try-fiveam | |
(:use :cl) | |
(:import-from :fiveam test run run! def-suite is)) | |
(in-package try-fiveam) | |
(test test+ | |
(is (= 2 (+ 1 1))) | |
(is (not (= 2 (+ 2 2))))) | |
(run!' test+) | |
(def-suite a-suite) | |
(def-suite b-suite :in a-suite) | |
(def-suite c-suite :in a-suite) | |
(fiveam:in-suite a-suite) | |
(test test* | |
(is (= 1 (* 1 1))) | |
(is (= 4 (* 2 2)))) | |
(test test- | |
(is (= 0 (- 1 1)))) | |
(fiveam:in-suite b-suite) | |
(test test-format | |
(is (string= "Hello World" | |
(format nil "Hello World")))) | |
(run! 'a-suite) | |
(fiveam:run-all-tests) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
all output
(run! test+)
(run! 'a-suite)
(fiveam:run-all-tests)