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.

source: branches/f4grobner/utils-tests.lisp@ 293

Last change on this file since 293 was 293, checked in by Marek Rychlik, 10 years ago

* empty log message *

File size: 695 bytes
RevLine 
[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)
16
[290]17#+nil
[289]18(test dummy-test
[281]19 "Makelist"
20 (is (= (+ 2 2)) "2 plus 2 wasn't equal to 4 (using #'= to test equality)")
21 (is (= 0 (+ -1 1)))
22 (signals
23 (error "Trying to add 4 to FOO didn't signal an error")
24 (+ 'foo 4))
25 (is (= 0 (+ 1 1)) "this should have failed"))
[289]26
[293]27(test makelist-1
28 "Makelist"
[290]29 (is (equal (makelist-1 (* 2 i) i 0 10) (0 2 4 6 8 10 12 14 16 18 20)))
30 )
31
[289]32(run!)
Note: See TracBrowser for help on using the repository browser.