Skip to content

Commit

Permalink
initial test set up
Browse files Browse the repository at this point in the history
  • Loading branch information
loskool committed Jul 14, 2020
1 parent 8c4ddae commit cdd34ac
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
6 changes: 6 additions & 0 deletions gtwiwtg-test.asd
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
;;;; gtwiwtg-test.asd

(asdf:defsystem #:gtwiwtg-test
:depends-on (:gtwiwtg :prove)
:defsystem-depends-on (:prove-asdf)
:components ((:test-file "gtwiwtg-test")))
10 changes: 10 additions & 0 deletions gtwiwtg-test.lisp
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
(defpackage :gtwiwtg-test
(:use :cl :gtwiwtg :prove))

(in-package :gtwiwtg-test)

(is (take 4 (range)) '(0 1 2 3))
(is (collect (range :from 2 :to -1 :by -0.5))
'(2.0 1.5 1.0 0.5 0.0 -0.5))
(is ())

3 changes: 2 additions & 1 deletion gtwiwtg.asd
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@
:version "0.1.1"
:serial t
:components ((:file "package")
(:file "gtwiwtg")))
(:file "gtwiwtg"))
:in-order-to ((test-op (test-op gtwiwtg-test))))

0 comments on commit cdd34ac

Please sign in to comment.