-----BEGIN PGP SIGNED MESSAGE-----

Moin,

is there a re reason that the following warns:

        % perl -MTest::More -le 'plan tests => 1; ok (1,1)'
        1..1
        #     You named your test '1'.  You shouldn't use numbers for your test
         names.
        #     Very confusing.

and this not:

        ok 1 - 1
        % perl -MTest::More -le 'plan tests => 1; ok ('foo','foo')'
        1..1
        ok 1 - foo

This has prevented me from "converting" several huge old testsuites from 
"use Test;" to "use Test::More;" because I know that I would then have to 
go and add testnames to thousand of tests (e.g. all tests that test for 
number output). This is very boring, and you can bet that I will come up 
with "is ($foo->baz(), 12, 'is 12');" just to shut of the warnings. And bad 
testnames are like bad comments, better have none than a bad or silly 
one :)

If I could just change "Test;" to "Test::More;" without hundreds of warnings 
springing on me I know I would convert the test scripts and then change 
them step by step over to the new code (or not change them at all, because 
don't change working code..)

Best wishes,

Tels

- -- 
 Signed on Tue Feb  3 18:38:48 2004 with key 0x93B84C15.
 Visit my photo gallery at http://bloodgate.com/photos/
 PGP key on http://bloodgate.com/tels.asc or per email.

 "Nuclear powered vacuum cleaners will probably be ready within 10 years."
 Alex Lewyt, of the Lewyt Corporation, a vacuum maker, predicted in The New
 York Times on June 10, 1955 -- A warning to all technophiles

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)
Comment: When cryptography is outlawed, bayl bhgynjf jvyy unir cevinpl.

iQEVAwUBQB/d7HcLPEOTuEwVAQGOSQf/Ts+NZAAzLIZHXTInZKsqVH+FjOUrxxMS
DyTlQ7L6WyRqY3A7sqD/XwjjlqyZ7fbuL6qfNZV2V8QjmLgd+y5lVgy1UgtfAReb
JQx/6At/hpSJfxPrcQyaD1WXth5JPnMLeEypaNrtW3HXeLr09IQaQCFTLiJtO6pD
CzqhaXA7Sbblky7Rah38GYzmBEYdXNqnfST7ns5OVhU/WweGjxZFMsr+0cLnrAAm
uiIE1tlrJKwfGIIbZ6hE+6skD73DptptFi8ALhs9r0jpy19EKjfbiERW8ZYopVAp
gopvXWG9CPO4o6eFvBg2oLRC9VXcn0Hy1G6e+vkGdlz0YYNAO48f4w==
=D2Lu
-----END PGP SIGNATURE-----

Reply via email to