[plt-scheme] SchemeUnit: [Listof TestSuite] -> TestSuite

From: David Van Horn (dvanhorn at ccs.neu.edu)
Date: Fri May 1 16:08:11 EDT 2009

Carl Eastlund wrote:
> That's a function, not syntax.  I've used apply on test-suite many
> times to create suites dynamically.

#lang scheme
(require (planet schematics/schemeunit))
(apply test-suite "foo" (list (check-equal? 1 1)))

I get: test-suite: bad syntax in: test-suite

David


> On Fri, May 1, 2009 at 4:00 PM, David Van Horn <dvanhorn at ccs.neu.edu> wrote:
>> I feel like I'm missing something obvious, but is there a way to form a test
>> suite out of a given list of test suites?  All I see is the syntax:
>>
>>   (test-suite name [#:before thunk] [#:after thunk] test ...)
>>
>> In addition to the compound testing forms, there should probably be
>> procedures for constructing compound tests.
>>
>> David
> 



Posted on the users mailing list.