Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
GaUnit
[go: Go Back, main page]

GaUnit

HOME > それいけ Gauche > テスト
English
Last modified: Tue Jun 03 08:47:59 +0900 2008

なにこれ?

Gaucheで実装されたUnit Testing Frameworkです. 読み方は,「ごにっと」とかはどうでしょうか?いや,「ジー エーユニット」でもいいんですけど...

同様のものにSchemeUnit があります.

入手方法

ここからどうぞ

インストール

% sudo gosh install/install.scm

使い方

テスト用のモジュールを定義します。

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

(provide "test-your-module")

定義したモジュールの中で名前が"test-"からはじまる引数なしの関数を定義します。

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

詳しくはCOZMIXNG RWiki - GaUnitを御覧ください.

run-test.elを使 うと,よりテストがしやすくなる...かもしれ ません.