-
Notifications
You must be signed in to change notification settings - Fork 221
Language CommonLisp
kazk edited this page Oct 10, 2020
·
3 revisions
SBCL 2.0.9
(in-package #:cl-user)
(defpackage #:challenge/solution
(:use #:cl)
(:export #:add))
(in-package #:challenge/solution)
(defun add (a b) (+ a b))
(in-package #:cl-user)
(defpackage #:challenge/tests/solution
(:use #:cl
#:rove
#:challenge/solution))
(in-package #:challenge/tests/solution)
; Solution can be imported from `challenge/solution`.
; Optional preloaded package (`challenge/preloaded`) can be provided by kata authors.
; Write tests with Rove (https://github.com/fukamachi/rove).
; The use of `testing` is recommended for better output on Codewars.
(deftest test-solution
(testing "add"
(ok (= (add 1 1) 2))))
12 seconds
None
None
commonlisp