Untested modules update: The Magic Number is 27

2001-12-19 Thread Michael G Schwern
The good news is lib.t and MM_Unix just went into the core. The even better news is Wolfgang Laun came riding in out of the East and has begun fixing perlcc! He's repairing B::Assembler and B::Disassembler and has written assembler.t And not to break the trend, the Net::Ping CPAN distribution a

[ANNOUNCE] Test::Simple/More/Builder/Tutorial 0.41

2001-12-19 Thread Michael G Schwern
Small update. diag() has finally been added to Test::More, thanks to chromatic. Also, I noticed that internal eval()s were interfering with the outside's $@ and $!, so I protected against that. Why eval() is fiddling with $! I don't know. 0.41 Mon Dec 17 22:45:20 EST 2001 * chromatic add

Re: is() with arbitrary comparisions

2001-12-19 Thread Michael G Schwern
On Wed, Dec 19, 2001 at 05:39:45PM -0500, Michael G Schwern wrote: > > For instance, I know of a lot of CPAN modules without tests at all, and I > > talked to a few authors, and even if they decide to add tests (after my > > 'convincing' emails), it takes time, or never gets done, or the tests are

Re: is() with arbitrary comparisions

2001-12-19 Thread Michael G Schwern
Tels posted some of his Test::More experiences off-list. Some of them are rather good so I'll post my reply on-list. On Wed, Dec 19, 2001 at 10:42:55PM +0100, Tels wrote: > * Use Test::Simple/More for new testfiles. It can help you. If Test::More > scares you, use Test::Simple or only a subset

Re: [PATCH] Re: emitting messages in Test::*

2001-12-19 Thread Barrie Slaymaker
On Wed, Dec 19, 2001 at 12:20:35PM -0700, chromatic wrote: > On Wed, 19 Dec 2001 05:12:05 -0700, Michael G Schwern wrote: > > > Its been on the TODO list to toss a diag() into Test::More. > > > > ok( ... ) || diag(...); > > > > for some reason I keep putting it off. > > > > Test::Simple wo

Re: is() with arbitrary comparisions

2001-12-19 Thread Kirrily 'Skud' Robert
On Wed, Dec 19, 2001 at 03:50:12PM -0500, Michael G Schwern wrote: > On Tue, Dec 11, 2001 at 01:52:12PM -0500, Kirrily Robert wrote: > > Are we doing the time warp again, or are the Huskies just tired of > pulling the packets across the border? > > > > How about: > > > > compare($foo, "<=", $b

Re: [PATCH] Re: emitting messages in Test::*

2001-12-19 Thread Michael G Schwern
On Wed, Dec 19, 2001 at 12:20:35PM -0700, chromatic wrote: > Something like this? Something uncannily like this, only without the literal tabs. > diffing against a directory tree is odd... there must be a better > way. I usually just check each individual file into RCS (vc-register-buffer fo

Re: Test::Builder: Multiple test libraries in one test.

2001-12-19 Thread Michael G Schwern
On Thu, Dec 13, 2001 at 02:07:56PM -0500, Kirrily Robert wrote: > Actually, Test::Mail doesn't work like that. It's more or less a > wrapper around Test::More that handles incoming email. Doesn't > implement any of its own ok()-like routines at all, just makes it easy > to use Test::More's routi

Re: is() with arbitrary comparisions

2001-12-19 Thread Michael G Schwern
On Tue, Dec 11, 2001 at 01:52:12PM -0500, Kirrily Robert wrote: Are we doing the time warp again, or are the Huskies just tired of pulling the packets across the border? > How about: > > compare($foo, "<=", $bar) cmp_ok(). Close. -- Michael G. Schwern <[EMAIL PROTECTED]>http://www.

[PATCH] Re: emitting messages in Test::*

2001-12-19 Thread chromatic
On Wed, 19 Dec 2001 05:12:05 -0700, Michael G Schwern wrote: > On Wed, Dec 19, 2001 at 07:52:03AM -0500, Barrie Slaymaker wrote: >> I noticed that Test::Builder offers the ability to emit messages with s/^/# >> /mg, which is very nice. Can/should this capability be exposed via >> Test::Simple, T

Re: is() with arbitrary comparisions

2001-12-19 Thread chromatic
On Wed, 19 Dec 2001 10:04:17 -0700, Tels wrote: > First, ok() is no no longer ok(), but is now is(), because ok() is no longer > ok to use with ok($this,$that); but is() is ok with $that. And then there is > isnt(), isn't it? Not to speak of the use of can_ok(), which you can use, ok? > isnt() $t

Re: is() with arbitrary comparisions

2001-12-19 Thread Tels
-BEGIN PGP SIGNED MESSAGE- Moin, On 11-Dec-01 Kirrily Robert tried to scribble about: > In perl.qa, you wrote: >>I think I have a solution to the rigidity of is(). ie. something with >>the diagnostic output of is(), but the flexibility of ok(). > >>It all makes sense, so what I really n

Re: is() with arbitrary comparisions

2001-12-19 Thread Kirrily Robert
In perl.qa, you wrote: >I think I have a solution to the rigidity of is(). ie. something with >the diagnostic output of is(), but the flexibility of ok(). >It all makes sense, so what I really need is a better name. How about: compare($foo, "<=", $bar) K. -- Kirrily 'Skud' Robert - [EMAIL P

Re: Test::Builder: Multiple test libraries in one test.

2001-12-19 Thread Kirrily Robert
In perl.qa, you wrote: >Candidates for this sort of thing would be CGI::Test, Test::Cmd, >Test::Unit, Test::Mail and ExtUtils::TBone. And, of course, Barrie's >Test::Differences. Actually, Test::Mail doesn't work like that. It's more or less a wrapper around Test::More that handles incoming ema

Re: emitting messages in Test::*

2001-12-19 Thread Mark Fowler
On Wed, 19 Dec 2001, Barrie Slaymaker wrote: > I noticed that Test::Builder offers the ability to emit messages with > s/^/# /mg, which is very nice. Can/should this capability be exposed > via Test::Simple, Test::More, etc? Can't you just "use Test::Builder" somewhere in your test script like

Re: v0.3 [Was: CPAN Upload: R/RB/RBS/Test-Differences-0.2.tar.gz]

2001-12-19 Thread Barrie Slaymaker
On Mon, Dec 17, 2001 at 04:10:30PM +0900, Tatsuhiko Miyagawa wrote: > On Sat, 15 Dec 2001 09:10:33 -0500 > Barrie Slaymaker <[EMAIL PROTECTED]> wrote: > > > Now I see what you're after with the -M approach, thanks for the > > example. > > Cool. > > > I can understand that :) since CPAN is/seems

Re: emitting messages in Test::*

2001-12-19 Thread Michael G Schwern
On Wed, Dec 19, 2001 at 07:52:03AM -0500, Barrie Slaymaker wrote: > I noticed that Test::Builder offers the ability to emit messages with > s/^/# /mg, which is very nice. Can/should this capability be exposed > via Test::Simple, Test::More, etc? Its been on the TODO list to toss a diag() into Te

emitting messages in Test::*

2001-12-19 Thread Barrie Slaymaker
I noticed that Test::Builder offers the ability to emit messages with s/^/# /mg, which is very nice. Can/should this capability be exposed via Test::Simple, Test::More, etc? Sometimes it's nice to explain what to do about a test failure that may be an intermittent failure, or to warn that they s