lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Make some local functions public (was: Re: lily-library.scm


From: Han-Wen Nienhuys
Subject: Re: [PATCH] Make some local functions public (was: Re: lily-library.scm question)
Date: Wed, 24 Jun 2009 02:08:35 -0300

On Tue, Jun 23, 2009 at 6:12 PM, Mark Polesky<address@hidden> wrote:

>> Maybe you guys can look into making a test framework for the
>> Scheme library functions.
>>
>> It should be fairly simple to check the functions (like you do
>> here ad-hoc) in a separate .scm file that is loaded if you run
>> ly/test-scm-functions.ly or something similar.
>
> Han-Wen,
>
> I don't mean to be obtuse, but I don't quite understand what you
> mean. What's a test framework? Do you mean "library" as in
> lily-library, or SRFI library? By check, do you mean test/compare
> results, or access, as in checkout?

I mean to have an automated set of tests, that checks for example that


(eq? (split-at-predicate odd?   '(2 3 6 8 9 0))
       '((2) (6 8) (0)))

holds.  It would be .ly file that runs Scheme function on a set of
inputs, and compares them to a set of outputs to make sure that they
match.


-- 
Han-Wen Nienhuys - address@hidden - http://www.xs4all.nl/~hanwen




reply via email to

[Prev in Thread] Current Thread [Next in Thread]