Acme-Teddy

 view release on metacpan or  search on metacpan

lib/Acme/Teddy.pm  view on Meta::CPAN

237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
        # Your target code here.
    }
    package main;
    use Acme::Teddy;
    # Your test here.
 
Start a test script with a bare block in AT (or subclass it). Then define
whatever behavior you like. After you switch into "your own" package, test
for that behavior. You should be able to verify by eye that your expectations
are correct; therefore, you can concentrate on debugging your testing module.
 
Writing the bare block is just like writing a module, except that much of the
dull work is done for you.
 
Lexical declarations will "leak" across package boundaries if you leave off
the bare block; so don't do that. It does not seem to be necessary to make
this a C<BEGIN> block; if you find any counterexample, please contact author.
 
Import whatever you like when you C<use Acme::Teddy>.
Be sure to define it, whatever it is.



( run in 0.369 second using v1.01-cache-2.11-cpan-00829025b61 )