close
Warning:
Can't synchronize with repository "(default)" (The repository directory has changed, you should resynchronize the repository with: trac-admin $ENV repository resync '(default)'). Look in the Trac log for more information.
| Rev | Line | |
|---|
| [286] | 1 | (load "~/quicklisp/setup")
|
|---|
| 2 | (ql:quickload :fiveam)
|
|---|
| [292] | 3 | (load "ngrobner.asd")
|
|---|
| [291] | 4 | (asdf:load-system :ngrobner)
|
|---|
| [286] | 5 |
|
|---|
| [287] | 6 | (defpackage :it.bese.fiveam.utils-tests
|
|---|
| 7 | (:use :common-lisp
|
|---|
| 8 | :it.bese.fiveam))
|
|---|
| [286] | 9 |
|
|---|
| [288] | 10 | (in-package :it.bese.fiveam.utils-tests)
|
|---|
| [287] | 11 |
|
|---|
| 12 | (def-suite utils-suite
|
|---|
| [282] | 13 | :description "Utils Suite")
|
|---|
| [281] | 14 |
|
|---|
| [287] | 15 | (in-suite utils-suite)
|
|---|
| [294] | 16 | (use-package :ngrobner)
|
|---|
| [287] | 17 |
|
|---|
| [294] | 18 |
|
|---|
| [290] | 19 | #+nil
|
|---|
| [289] | 20 | (test dummy-test
|
|---|
| [281] | 21 | "Makelist"
|
|---|
| 22 | (is (= (+ 2 2)) "2 plus 2 wasn't equal to 4 (using #'= to test equality)")
|
|---|
| 23 | (is (= 0 (+ -1 1)))
|
|---|
| 24 | (signals
|
|---|
| 25 | (error "Trying to add 4 to FOO didn't signal an error")
|
|---|
| 26 | (+ 'foo 4))
|
|---|
| 27 | (is (= 0 (+ 1 1)) "this should have failed"))
|
|---|
| [289] | 28 |
|
|---|
| [293] | 29 | (test makelist-1
|
|---|
| 30 | "Makelist"
|
|---|
| [294] | 31 | (is (equal (makelist-1 (* 2 i) i 0 10) '(0 2 4 6 8 10 12 14 16 18 20)))
|
|---|
| 32 |
|
|---|
| [290] | 33 | )
|
|---|
| 34 |
|
|---|
| [289] | 35 | (run!)
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.
Download in other formats: