On 12 Aug, GOTO Kentaro wrote:
> Hi, 
> 
> In message "[ruby-talk:00634] ANN: testsupp.rb 0.1"
>     on 99/08/11, Clemens Hintze <c.hintze / gmx.net> writes:
> 

[...]

> It is simple but very nice!! :-) :-)

Thank you :-)))

> May I requiest some features?

Of course :-)

> 
> 1. test_section such as
>      def test_section(what = "(No Title)")
>        check(what)
>        start_tests
>        yield
>        end_tests
>      end

Hmmm :-/ What do you want to do? Do you want to use it for a whole
file? Because normally one test script should test more than one
section, like the second example in the comment header of `testsupp.rb'.

If you would use your test_section, it would restart the section
numbering with (1) every time you use it. Is it that, what you expect?

> 
> 2. quiet option for all method

What dou you mean with it? What would a `quiet' option do? Suppress the
whole output?

> 3. customizable output format

How would you prefer it? The output is somewhat complex because I have
tried to pay attention to the grammar numerus of the sentences. Because
of the complexity, I think template handling would be too confusing. I
could think about calling another user-defined method with the
corresponding parameters. Let it decide how to format the text and how
to handle the grammar. Would that be okay for you?

> 4. Would you meke methods module_function?

Of course! I have forgot it! :-(

> 
> -- gotoken

\cle

PS: I have currently another test library under developement. It is
much more sophisticated and would pay attention regarding prerequisite
testcases. You easily can write a parser that is able to parse the test
description. Three parsers (until yet) are already contained in that
package. But I have to document it a little bit more... :)