Re: Some basic string tests.

[email protected] (Piers Cawley) Fri, 15 Nov 2002 07:12:39 +0000
Newsgroups perl.perl6.documentation
Message-ID <[email protected]>
David Wheeler <[email protected]> writes:

> On Monday, November 11, 2002, at 02:32  PM, Joseph F. Ryan wrote:
>
>> -Things that are currently unimplemented in P6C are in the TODO
>> folder, per
>> David Wheeler's suggestion.
>
> That's not actually what I meant. You use TODO blocks in your test
> scripts, like this:
>
>           TODO: {
>               local $TODO = "Not yet implemented";
>               ok( foo(),       $test_name );
>               is( foo(42), 23, $test_name );
>           };
>
> perldoc Test::More for more information.

You don't actually have to name the block though. Just assign a
temporary value to TODO.

-- 
Piers

   "It is a truth universally acknowledged that a language in
    possession of a rich syntax must be in need of a rewrite."
         -- Jane Austen?