GaUnit

HOME > Go Gauche > Test
日本語
Last modified: Fri Oct 31 10:54:03 +0900 2008

What's this?

This is the Unit Testing Framework implemented by Gauche.

This is similar to SchemeUnit.

Download

Here.

Install

% sudo gosh install/install.scm

Usage

Define a module for your test.

(define test-your-module
  (use test.unit.test-case)
  (use your-module))
(selecte-module test-your-module)

(provide "test-your-module")

Define test functions that their name are started with "test-" and their arity is 0 in the module.

(define (test-your-function1)
  (assert-equal 29 (your-function1 2 9))
  #f)

COZMIXNG RWiki - GaUnit has more information.

run-test.el may help your testing.