1
0
Fork 0
Browse Source

add fiveAM package and create initial test.

I've changed how the tests and doc systems are defined in the .asd
file. The changes are based on what SLIME outputted when compiling the
project.

The initial test are irrelevant to the project. I wrote it to make
sure fiveAM (and the test project as a whole) was connected together
properly. This test will (should) not remain once the main code is up
and running.
unstable
Craig Oates 3 years ago
parent
commit
aa1abec7fe
  1. 5
      ritherdon-rest.asd
  2. 2
      tests/package.lisp
  3. 5
      tests/ritherdon-rest-tests.lisp

5
ritherdon-rest.asd

@ -11,17 +11,18 @@
:components ((:file "package")
(:file "ritherdon-rest")))
(asdf:defsystem #:ritherdon-rest-tests
(asdf:defsystem #:ritherdon-rest/tests
:description "The test suite for the ritherdon-rest project."
:author "craig@craigoates.net"
:license "MIT"
:version "0.0.1"
:serial t
:depends-on (#:fiveam)
:pathname "tests/"
:components ((:file "package")
(:file "ritherdon-rest-tests")))
(asdf:defsystem #:ritherdon-rest-doc
(asdf:defsystem #:ritherdon-rest/doc
:description "The doc's package for the ritherdon-rest project."
:author "craig@craigoates.net"
:license "MIT"

2
tests/package.lisp

@ -1,4 +1,4 @@
;;;; package.lisp
(defpackage #:ritherdon-rest-tests
(:use #:cl))
(:use #:cl :fiveam))

5
tests/ritherdon-rest-tests.lisp

@ -1,3 +1,8 @@
;;;; ritherdon-rest-tests.lisp
(in-package #:ritherdon-rest-tests)
(fiveam:test sum-1
(fiveam:is (= 3 (+ 1 2))))
(fiveam:run!)