Could you explain a bit about what this test is doing?
It may help to put sample files to split against in t/lib somewhere
rather than smashing them all after the __END__ block.
On Tue, Sep 25, 2001 at 12:37:40AM +0100, Nicholas Clark wrote:
+ # There may be a way to capture STDOUT without
Nicholas Clark wrote:
Can't I use the module early, and then figure out how many tests I'm planning
to run at run time? If no, I'm going to have to do my figuring-out in a
BEGIN block. This was with Test::More::VERSION '0.19'
You can look at what I did in t/op/ver.t as well, vis:
On Mon, 24 Sep 2001, Michael G Schwern wrote:
On Mon, Sep 24, 2001 at 06:23:58PM -0500, Dave Rolsky wrote:
The patch below allows you to supply your own test name for the isa_ok
function (I find the default insufficiently descriptive). I'd like to do
the same for can_ok but I don't think
On Mon, 24 Sep 2001, Michael G Schwern wrote:
On Mon, Sep 24, 2001 at 06:42:55PM -0500, Dave Rolsky wrote:
+sub eval_ok ($) {
+my ($code, $name) = @_;
+
+eval { $code-() };
+if ($@) {
+ ok( 0, $name - $@ );
+} else {
+ ok( 1, $name );
+}
+}
The
In perl.qa, you wrote:
eval { ...code... };
is( $@, '' );
Yeah, except that doesn't print out $@ in case of failure. If I'm
checking that no exception occurs I want to know what the exception is
when it happens.
But it does! It says something like:
not ok 23
# Failed test 1
At 11:59 AM 9/24/2001 -0400, Dan Sugalski wrote:
At 11:23 PM 9/23/2001 -0500, Craig A. Berry wrote:
Basically we're pre-loading a hash when you use keys or values on
%ENV, and if I understand this right, hash elements are not
full-blown scalars and thus do not have tainting bits. Getting an
On Sun, 23 Sep 2001, Michael G Schwern wrote:
Alter h2xs and ExtUtils::ModuleMaker to make the stub test be t/Foo.t
instead of test.pl.
I believe h2xs does this already in bleadperl.
--
Tim Jenness
JAC software
http://www.jach.hawaii.edu/~timj
On Sat 22 Sep 2001 00:50, Michael G Schwern [EMAIL PROTECTED] wrote:
However, that's a big job to get right and we'll do it later. Right
now, stick to the cleanups and adding coverage. It also wouldn't hurt
to start going through old open perlbug entries.
A lead to find bugs that are
The patch below allows you to supply your own test name for the isa_ok
function (I find the default insufficiently descriptive). I'd like to do
the same for can_ok but I don't think that could be done without breaking
backwards compatibility.
-dave
--- More.t~ Wed Sep 5 19:23:24 2001
+++
In article [EMAIL PROTECTED], Nicholas Clark
[EMAIL PROTECTED] wrote:
I hope this patch works. The one without MANIFEST did.
Here's a patch to the patch that ties a filehandle and removes the spawning. I
had to tweak one little regex and add a chomp to get things to work.
p5p's trimmed from
10 matches
Mail list logo