[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-users] TestBase collection style
From: |
Kon Lovett |
Subject: |
[Chicken-users] TestBase collection style |
Date: |
Sun, 17 Jun 2007 19:05:24 -0700 |
Hi Ivan,
I added the 'test-collect' container:
(test/collect "Collect Form 1"
(do ([i 0 (+ 1 i)]) [(> i 9)]
(+ i i) ; some code
(collect-test (expect-eqv (conc "cft " i) i (modulo i 10))) )
)
The above will generate ten tests, sort of. Really only one test
evaluated ten times, so ten test results. (The '(conc "cft " i)' is
just a way of generating a test name at runtime.) A collect container
has the same basic semantics as a case container.
Also 'define-expect-nary' which is similar to a feature of SchemeUnit.
Best Wishes,
Kon
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Chicken-users] TestBase collection style,
Kon Lovett <=