source:
branches/f4grobner/utils-tests.lisp@
299
Last change on this file since 299 was 299, checked in by , 10 years ago | |
---|---|
File size: 683 bytes |
Rev | Line | |
---|---|---|
[286] | 1 | (load "~/quicklisp/setup") |
2 | (ql:quickload :fiveam) | |
[292] | 3 | (load "ngrobner.asd") |
[291] | 4 | (asdf:load-system :ngrobner) |
[286] | 5 | |
[299] | 6 | (defpackage #:utils-TESTS |
[298] | 7 | (:use :cl :it.bese.fiveam)) |
[286] | 8 | |
[297] | 9 | (in-package :utils-tests) |
[287] | 10 | |
11 | (def-suite utils-suite | |
[282] | 12 | :description "Utils Suite") |
[281] | 13 | |
[287] | 14 | (in-suite utils-suite) |
[294] | 15 | (use-package :ngrobner) |
[287] | 16 | |
[294] | 17 | |
[290] | 18 | #+nil |
[289] | 19 | (test dummy-test |
[281] | 20 | "Makelist" |
21 | (is (= (+ 2 2)) "2 plus 2 wasn't equal to 4 (using #'= to test equality)") | |
22 | (is (= 0 (+ -1 1))) | |
23 | (signals | |
24 | (error "Trying to add 4 to FOO didn't signal an error") | |
25 | (+ 'foo 4)) | |
26 | (is (= 0 (+ 1 1)) "this should have failed")) | |
[289] | 27 | |
[293] | 28 | (test makelist-1 |
29 | "Makelist" | |
[298] | 30 | (is (equal (makelist-1 (* 2 i) i 0 10) '(0 2 4 6 8 10 12 14 16 18 20))) |
[294] | 31 | |
[290] | 32 | ) |
33 | ||
[289] | 34 | (run!) |
Note:
See TracBrowser
for help on using the repository browser.