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.
Last change
on this file since 296 was 296, checked in by Marek Rychlik, 9 years ago |
* empty log message *
|
File size:
716 bytes
|
Line | |
---|
1 | (load "~/quicklisp/setup")
|
---|
2 | (ql:quickload :fiveam)
|
---|
3 | (load "ngrobner.asd")
|
---|
4 | (asdf:load-system :ngrobner)
|
---|
5 |
|
---|
6 | (defpackage "UTILS-TESTS"
|
---|
7 | (:use :common-lisp
|
---|
8 | :it.bese.fiveam))
|
---|
9 |
|
---|
10 | (in-package :it.bese.fiveam.utils-tests)
|
---|
11 |
|
---|
12 | (def-suite utils-suite
|
---|
13 | :description "Utils Suite")
|
---|
14 |
|
---|
15 | (in-suite utils-suite)
|
---|
16 | (use-package :ngrobner)
|
---|
17 |
|
---|
18 |
|
---|
19 | #+nil
|
---|
20 | (test dummy-test
|
---|
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"))
|
---|
28 |
|
---|
29 | (test makelist-1
|
---|
30 | "Makelist"
|
---|
31 | (is (equal (eval '(makelist-1 (* 2 i) i 0 10)) '(0 2 4 6 8 10 12 14 16 18 20)))
|
---|
32 |
|
---|
33 | )
|
---|
34 |
|
---|
35 | (run!)
|
---|
Note:
See
TracBrowser
for help on using the repository browser.
Download in other formats: