File: unittest-gauche.scm

package info (click to toggle)
sigscheme 0.8.3-8
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 12,236 kB
  • ctags: 7,208
  • sloc: lisp: 37,498; ansic: 30,948; sh: 9,257; makefile: 744; asm: 333; ruby: 288
file content (10 lines) | stat: -rw-r--r-- 293 bytes parent folder | download | duplicates (14)
1
2
3
4
5
6
7
8
9
10
(require-extension (unittest))

(define test
  (lambda (msg ret func)
    (assert-equal? msg ret (func))))

;; <expr> must be quoted (not compatible with Gauche's)
(define test*
  (lambda (name expected expr . compare)
    (assert-equal? name expected (eval expr (interaction-environment)))))