Re: extending t_cmp to handle !t_cmp?

2004-11-29 Thread Stas Bekman
Geoffrey Young wrote: - We still don't have Test::More in the 5.6.1 core (it was added in 5.6.2/5.8.0), so we can't rely on it being available. sure, but you can conditionally skip over those tests for users that don't have Test::More installed. I know that currently doing that is kind of ugly,

Re: extending t_cmp to handle !t_cmp?

2004-11-29 Thread Geoffrey Young
Am I correct to say that Test::More is in the core for all but 5.6.1 the required minimum by mp2? yes, but see below - we would have further version restrictions if we chose to make T::M the engine for the entire mp2 test suite. so if we make a dependency on Test::More only the 5.6.1 users

Re: extending t_cmp to handle !t_cmp?

2004-11-29 Thread Geoffrey Young
anyway, in the end I guess I wouldn't suggest moving to T::M entirely just yet. but if you want to use it occasionally within certain tests I think that's fine. Of course another alternative is to bundle a sufficient version of T::M under t/. that's an idea. so long as it's not

Re: extending t_cmp to handle !t_cmp?

2004-11-29 Thread Stas Bekman
Stas Bekman wrote: Of course another alternative is to bundle a sufficient version of T::M under t/. that's an idea. so long as it's not installed with 'make install'. or indexed by cpan either, I suppose. anything living under t/ is not installed on 'make install' and not scanned by PAUSE.

Re: extending t_cmp to handle !t_cmp?

2004-11-29 Thread Geoffrey Young
Stas Bekman wrote: Stas Bekman wrote: Of course another alternative is to bundle a sufficient version of T::M under t/. that's an idea. so long as it's not installed with 'make install'. or indexed by cpan either, I suppose. anything living under t/ is not installed on 'make

extending t_cmp to handle !t_cmp?

2004-11-26 Thread Stas Bekman
Most of the time when one needs to check when two values are different one could run: ok !t_cmp(...) but the diagnostics is wrong, since received will be matching 'expected' For example: ok !t_cmp $received, qr/message/ # testing : whatever # expected: (?-xism:message) # received: [...]