- 15 名前:デフォルトの名無しさん mailto:sage [2009/06/28(日) 21:36:25 ]
- >>14
rubyっぽくかくとこんな感じ。 deftest test_plus assert_equal(1+1, 2) ... end deftest test_arithmetic test_plus end deftest test_math test_math end ってかいてtest_mathを呼ぶと pass ... test_math test_arithmetic test_plus : assert_equal(1+1 ,2) みたくテスト内容と階層と結果を自動的に表示してくれるという lispではこれをdeftestとかっていうマクロから書き始めても二十行くらいでかけてびっくりした。 英語版がここに公開されてる gigamonkeys.com/book/practical-building-a-unit-test-framework.html
|

|