On Mon, Mar 31, 2003 at 12:45:14PM +0100, Dominic Mitchell wrote:
I've just uploaded a new module to CPAN[1], Test::XML. It contains a
couple of functions for examining XML output of functions in a slightly
saner way than is().
http://search.cpan.org/author/SEMANTICO/Test-XML-0.03/
have a trick which simulates running a perl script, but all
its really doing is eval'ing the code in the current process. This means
the tricks above will work.
It can be found here:
http://www.pobox.com/~schwern/tmp/esmith-TestUtils.pm
Adapt as you like.
--
Michael G. Schwern [EMAIL
After shuffling some files around and doing some permissions tricks, the
Perl QA Wiki is working again! Everything is now editable.
http://www.pobox.com/~schwern/cgi-bin/perl-qa-wiki.cgi
--
Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/
Perl Quality Assurance
this will interact with
threading :-/
(Famous last words) There shouldn't be a problem.
--
Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/
Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One
It's Tobacco time!
would be an Exporter/Exporter::Heavy poor-man's
autoloader setup.
Of course, there's nothing stopping you from overriding level() to be
magical, once I implement your ideas about being able to change the default
object and stack them.
--
Michael G. Schwern [EMAIL PROTECTED]http
is shared between the
original and the copy
with those plus the push/pop_stack methods you can pick and choose what sort
of state sharing you want.
--
Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/
Perl Quality Assurance [EMAIL PROTECTED
?
--
Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/
Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One
Ooops, fatal mutation in the test script.
destruction.
- Added example of calculating the number of tests to Test::Tutorial
- Peter Scott made the ending logic not fire on child processes when
forking.
* Test::Builder is once again ithread safe.
--
Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern
into lexicals rather than a hash is
because its easier to type $Have_Plan than $self-{Have_Plan}.
--
Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/
Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One
11. Every old idea will be proposed again
On Mon, Nov 11, 2002 at 02:51:00PM -0800, chromatic wrote:
On Monday 11 November 2002 14:40, Michael G Schwern wrote:
We *could* add a method called really_create_a_new_builder() that doesn't
have the singleton properties, but what problem does that solve? As long
as we're stuck
than $self-{Have_Plan}.
http://magnonel.guild.net/~schwern/talks/Refactoring/slides/slide015.html
;-)
The nice part about refactorings is they're reversable.
--
Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/
Perl Quality Assurance [EMAIL PROTECTED
At YAPC::Europe there was some discussion about Test::Builder-level,
$Test::Builder::Level and the fact that they don't really work well as
implemented. I know we reached some sort of consensus about how to do it
better, but I've forgotten it.
Anyone remember?
--
Michael G. Schwern [EMAIL
to load threads.pm
before Test::More or Test::Builder if you wish to use threads in your tests.
use threads;
use Test::More;
--
Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/
Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job
if you use the one set by Perl?
--
Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/
Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One
I'm not actually Kevin Lenzo, but I play him on TV.
On Tue, Oct 15, 2002 at 10:34:26AM +0100, Nicholas Clark wrote:
On Mon, Oct 14, 2002 at 09:00:42PM -0400, Michael G Schwern wrote:
5.8.0's threads are giving me serious headaches. When 5.8.1 comes out I
might drop support for 5.8.0's threads just so I can remove a large volume
of work
-optional when you install Test::More. But that's
an implementation issue and will eventually fade away.
[1] This thinking makes me nervous, so I'm open to someone convincing me
otherwise.
--
Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/
Perl Quality Assurance
-around code.
--
Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/
Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One
List context isn't dangerous. Misquoting Gibson is dangerous.
-- Ziggy
::Memory can be
left for later, and the functionality of Devel::Memory::Heap can be put into
it if it makes sense.
--
Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/
Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One
Here's some scholarly-ass opinions...
3
# Looks like you failed 1 tests of 1.
schwern@blackrider:~/src/devel/Test-Simple$
I'll have to put in some special case code to make it work right.
2. I'm testing conversions to and from Unicode
Unicode... wasn't he the bad guy in the Transformers Movie?
--
Michael G. Schwern [EMAIL
. Shouldn't be a difference.
Ok, so it _should_ work. I'll see if I can boil this down and create a
bugreport if I can.
--
Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/
Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One
Out of ammunition
block is redundant. t/harness (ie. make
test_harness) is currently not using TestInit. There's currently a bug
where $Test::Harness::switches is not honored.
--
Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/
Perl Quality Assurance [EMAIL PROTECTED
. is no
longer in the path).
'.' won't necessarily be in the path anyway.
Sorry, I ment perl's @INC.
--
Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/
Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One
Not king yet
produce HTML
and lots of other formats.
--
Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/
Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One
Still not king
perl's @INC.
That's what I meant too. People can build Perl without '.' in
@INC, right?
I don't think so.
--
Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/
Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One
If your module passes test
test:
./perl -It -MTestInit lib/Foo/whatever.t
or
./perl -I. -MTestInit ../lib/Foo/whatever.t
What it boils down to is how to you remove the need for the cargo-cult BEGIN
block in each test while still making it easy to run individual tests by
hand?
--
Michael G. Schwern [EMAIL
in sync with p5p's patches is the hardest part.
--
Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/
Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One
There is a disurbing lack of PASTE ENEMA on the internet.
?
--
Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/
Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One
Do you have a map? Because I keep getting lost in your armpits.
implications, actually.
-Ken
- End forwarded message -
--
Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/
Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One
Try explaining that to my brain which is currently ON FIRE!
http
anyway.
--
Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/
Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One
I blame myself. AND SATAN.
cleanup.
Whoa, nice catch! And thanks for catching the missing t/has_plan's in the
MANIFEST. :)
--
Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/
Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One
gigaconway: a hypothetical unit of mind
::Harness 2.03 is a prerequsite of Test::More.
Either it didn't get installed for some reason or your old version is
shadowing. T::H somewhere around 1.2x installed itself into site_perl, not
the core, so you might have a leftover. Try a make install UNINST=1.
--
Michael G. Schwern [EMAIL
really impossible?
A timeout argument to prompt() might be worthwhile. And an accompanying
environment variable.
--
Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/
Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One
I've just gone through a lung
not fire on child processes when
forking.
* Test::Builder is once again ithread safe.
--
Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/
Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One
I do have a cause though. It is obscenity. I'm
like:
is($this, $that) || diag(MSG);
Please check that your $locale_i_was_testing_with locale is fully
installed and try again. Otherwise, contact the author.
MSG
--
Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/
Perl Quality Assurance [EMAIL PROTECTED
to place Inline::C into 5.9 to facilitate easy testing
of the C API.
--
Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/
Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One
IMHO bugs in Perl 5 shouldn't carry over to Perl 6. (Unless, of course,
we *like
are structured
to reduce interdependencies, use Test::More; when Test::More is not
appropriate..
Porting/patching.pod
About the only thing that's missing is docs for t/test.pl.
--
Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/
Perl Quality Assurance [EMAIL
On Sat, Jul 27, 2002 at 09:44:03AM -0700, chromatic wrote:
This patch captures messages sent through diag() and stores them in the
diagnostic array. Now all of the information the tests generate is available
for later inspection.
Dude, where's my patch?
--
Michael G. Schwern [EMAIL
, you only need to do it once.
--
Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/
Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One
5. It is always possible to aglutenate multiple separate problems
into a single complex interdependent solution
Figured folks might be interested in slides from talks at OSCON:
http://www.pobox.com/~schwern/talks/How_To_Be_Lazy_Redux/
http://www.pobox.com/~schwern/talks/Test_Tutorial/
http://www.pobox.com/~schwern/talks/Writing_A_Test_Library/
--
Michael G. Schwern [EMAIL PROTECTED]http
On Mon, Jul 01, 2002 at 09:57:24AM -0500, Andy Lester wrote:
I can do this:
use PHP::Session 0.10;
to ensure a version number, but I can't do this:
use_ok( 'PHP::Session', '0.10' );
because I get this error:
alester@flr4[~/tw/Dev]$ more Modules.t
#!/usr/bin/perl -w
use
On Sun, Jun 16, 2002 at 03:12:17AM -0400, Michael G Schwern wrote:
The Test::Harness::Straps part of 16938 has been defered until Pudge gets
back to be with some more data. The patch only addresses the symptoms, the
real problem is likely elsewhere.
http:[EMAIL PROTECTED]/msg00224.html
On Sun, Jun 16, 2002 at 08:28:26PM +0100, Adrian Howard wrote:
Now, the way I do this at the moment is have num_method_tests() walk up
the callstack until it finds a package that also isa Test::Class (in
this
case Base::Test) and then assume that is the class containing the method
whose #
On Sat, Jun 15, 2002 at 06:00:44PM +0100, Mark Fowler wrote:
I was, out of curiousity, wondering what happened to these changes as they
don't seem be in 5.8.0RC1
My time machine's in the shop awaiting a shipment of sky hooks.
(Translation: Arthur's patch came after RC1.)
As for why it's not
On Sat, Jun 08, 2002 at 10:45:50AM -0700, chromatic wrote:
Taking an average test suite as an example, we could have 'foo.t' and 'bar.t',
testing Foo.pm and Bar.pm respectively. Bar depends on Foo, and bar.t mocks a
couple of methods of Foo.
If bar.t uses Test::Depend, it'll pick up
http://www.pobox.com/~schwern/src/Test-Harness-2.24.tar.gz
Two bugs.
2.24 Wed May 29 19:02:18 EDT 2002
* Nikola Knezevic found a bug when tests are completely skipped
but no reason is given it was considered a failure.
* Made Test::Harness::Straps-analyze_file Test::Harness a
There was a big discussion about writing a module to make it easier to test
sets and common complex data structures and superceed the paltry eq_*
functions in Test::More.
http:[EMAIL PROTECTED]/msg01369.html
Anyone working towards that?
--
This sig file temporarily out of order.
or POSIX unavailable
What do people think?
--
Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/
Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One
Kids - don't try this at--oh, hell, go ahead, give it a whirl...
at -e line 1.
P.S. Mike, the same thing applies with your mixin.pm
gotcha
--
Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/
Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One
let me think it over while Cheese beats you with a baseball bat.
patch and also tested that isa_ok()
honors isa() overrides. Thanks.
--
Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/
Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One
4 WHEREAS, the siren song of payola issuing from the discordant calliopes
-platform manner. It's usually used to test
code that will cause a segfault, but's useful for what you want, too.
I've been meaning to make a CPAN version of this code, but I'm out of
tuits.
--
Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/
Perl Quality Assurance
on its own.
Ok:
sub test {
return unless /\.pm$/;
print # compiling $_\n;
system(qq{$^X -e 'print eval { require $_; 1 } ? ok\n : not ok\n' });
}
use File::Find;
find(\test , shift || '.');
adjust as necessary. Doesn't have to be fancy.
--
Michael G
a bad name. Don't fixate on it, write
Test module with better set handling.
--
Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/
Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One
It's Flypaper Licking time!
On Thu, Apr 11, 2002 at 10:37:10AM +0900, Curt Sampson wrote:
On Tue, 9 Apr 2002, Michael G Schwern wrote:
I'm not sure exactly what the purpose of this is; your test will
still fail if it dies even when not in a lives_ok block, right?
It'll fail and take the whole rest of the test
normal comparision functions and becoming more and more
out of place in Test::More.
--
Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/
Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One
O you fat bastard
anus
On Tue, Apr 09, 2002 at 03:26:21PM +0100, Mark Fowler wrote:
There's a lot of other problems like that. So I was thinking of writing
Test::Sloppy (aka Test::Fuzzy, aka...)
What would it do?
(I can show you lots of sloppy tests if you like. :)
--
Michael G. Schwern [EMAIL PROTECTED
On Tue, Apr 09, 2002 at 05:02:32PM +0100, Mark Fowler wrote:
On Tue, 9 Apr 2002, Michael G Schwern wrote:
On Tue, Apr 09, 2002 at 03:26:21PM +0100, Mark Fowler wrote:
There's a lot of other problems like that. So I was thinking of writing
Test::Sloppy (aka Test::Fuzzy, aka
:
dies_ok { div(1,0) } 'div by zero';
like( $@, qr/^Illegal division by zero/ );
Even though you can use throws_ok(), the dies_ok() + $@ combo is more
flexible more processing than just a regex needs to be done on $@.
--
Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern
.
Nope. No more functions in Test::More, too much in there already.
I want to encourage the idea of having more than one Test::* module in
use in a test.
--
Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/
Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job
,
Test::Data::Deep, etc...
--
Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/
Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One
Lesbian lovers
return to fourth grade slogans
EAT SOME PASTE, they cry
sobbing lesbian
excluded from the party
allergic
On Tue, Mar 26, 2002 at 01:47:38PM +0900, Curt Sampson wrote:
On Mon, 25 Mar 2002, Michael G Schwern wrote:
2. Skip test of code where dependencies have been tested and found
to be failing. For example, if the test for the database connection
module fails, nothing
that this is supposed to be a file containing the test
results, not the test code. Hmmm.
Nope. Your original impression is correct. Docs are just poorly
worded. Just touched it up.
--
Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/
Perl Quality Assurance [EMAIL
. Checking to see if Win32 can pseudo-fork is a little more
complicated than alarm (see t/op/fork.t).
If you provide both methods you can cover Unix, Win32 and a bunch of
other platforms.
--
Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/
Perl Quality Assurance [EMAIL
::Module::unlock = $orig_unlock;
}
Sorry I can't be more specific.
--
Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/
Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One
Realize this, sweetheart, I'm squeezing my poodle.
On Mon, Mar 18, 2002 at 02:14:23PM -0700, Sean M. Burke wrote:
At 03:26 2002-03-18 -0500, Michael G Schwern wrote:
[...]Use alarm and skip the test if $Config{d_alarm} is false (see
t/op/alarm.t for an example). If you think the infinite loop is due
to a programming glitch, as opposed
the exit and wait codes of the test to the
analyze_file() results.
A minor release, mostly to fix the Straps bug. Test::Harness::Straps
is now in active use thanks to the Good People at Mitel Networks (see
also E-Smith) and will be firming up rapidly.
--
Michael G. Schwern [EMAIL
(see what happens
when you forget to test things?)
- The change in is()'s undef/'' handling in 0.34 was an API change,
but I forgot to declare it as such.
- The apostrophilic jihad attacks! Philip Newtons patch for
grammar mistakes in the doc's.
--
Michael G. Schwern
by the rest of the normal test script.
And that's how you can test something that's otherwise destructive.
Questions? :)
[1] Its not just stop. Its stop with extreme prejudice. It kills
all existing connections.
--
Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/
Perl
paying me to
write tests. :)
--
Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/
Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One
Don't worry, baby, my wrath can be pretty groovy.
http://www.goats.com/archive/980804.html
not having Term::ANSIColor in the
tests you can do:
unshift @INC, 't/lib/fake';
...
and any unshielded require/use of Term::ANSIColor will explode
convincingly.
--
Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/
Perl Quality Assurance [EMAIL PROTECTED
On Thu, Feb 21, 2002 at 10:05:09AM -0500, Michael G Schwern wrote:
Simpler thing to do would be to create t/lib/fake/Term/ANSIColor.pm
which is something like:
package Term::ANSIColor;
die, die, die, die, die Can't locate Term/ANSIColor.pm in \@INC\n;
Sorry, that should
::Cmd
Net::Domain
Net::POP3
O
Pod::Html
Pod::Select
--
Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/
Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One
purl Hey Schwern! honk, honk, honk, honk, honk, honk, honk, honk,
honk, honk, honk, honk, honk
runs if File::Glob
is loaded.
if( $INC{'File/Glob.pm'} ) {
...glob('0') test...
}
else {
print ok 8 # skip: File::Glob emulated Unixism\n;
}
--
Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/
Perl Quality Assurance [EMAIL PROTECTED
.
--
Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/
Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One
They had applied the blinders of steam-grilled hamburgers to my eyes.
Test::More behaves (surprise).
2002-02-07 Michael G Schwern [EMAIL PROTECTED]
* Release 1.20
* Failure diagnostics now go to STDERR so they show up
in 'make test'.
- noted in the docs that this module is no longer being
developed.
2001-12-17 Michael G
to _setup_symbols at /usr/share/perl5/CGI.pm line 226
--
Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/
Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One
It's Airplane Glue sniffing time!
of
failing silently
* Added a THANKS section.
0.10 Wed Dec 12 05:40:14 EST 2001
* Windows filenames would cause subroutines() and modules_used() to
choke. (Thanks to Alessandro Forghieri for the patch)
--
Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com
requirement.
(You guys solve any of this, Tony?)
So I'm looking for something like the above, but that meets my
criteria of being easy to learn, teach, accept and hard to screw up.
--
Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/
Perl Quality Assurance [EMAIL
On Mon, Jan 14, 2002 at 11:13:27AM +0100, Rafael Garcia-Suarez wrote:
On 2002.01.13 22:25 Michael G Schwern wrote:
Why would this:
BEGIN {
push @INC, 'foo';
}
put 'foo' into @INC twice if it were compiled? The compiled program
should not be storing the post
On Mon, Jan 14, 2002 at 04:16:49PM +, Piers Cawley wrote:
Michael G Schwern [EMAIL PROTECTED] writes:
On Mon, Jan 14, 2002 at 10:23:46AM +, Piers Cawley wrote:
Um... You're wrong. If you do need 'startup time' initialization then
you should do it in an INIT block. If I may quote
of @INC (and whatever else B::C
might have trouble getting at) and pass that information along.
--
Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/
Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One
Maybe they hooked you up with one of those ass-making
load-time checks and
logic inside BEGIN blocks.
Why would this:
BEGIN {
push @INC, 'foo';
}
put 'foo' into @INC twice if it were compiled? The compiled program
should not be storing the post-BEGIN value of @INC, it should store
the original value at startup.
--
Michael G
. Why would the compiled program print nothing
normally? $^C should not be set.
--
Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/
Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One
Instant Cross-Platform CGI Programming in Visual Perl 5 with Object
::dump()...).
fresh_perl()? kamikaze_perl()?
At 5am the imagination is the first to go.
I guess the idea is to run a program in a seperate process and compare
the output. A cross between runperl() and is(). is_runperl() doesn't
seem like a good idea. cmp_runperl? cmp_prog?
--
Michael G
;
-print STDERR # GOT:\n$results\n;
-}
-printf %sok %d%s\n, ($ok ? '' : not ), $test,
- length $name ? - $name : $name;
-$test++;
+kill_perl($prog, $expected, { switches = $switch }, $name);
}
__END__
--
Michael G. Schwern [EMAIL PROTECTED
discuss the Straps example in a seperate post.
--
Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/
Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One
purl Hey, Schwern! THERE IS A HUGE GAZORGANSPLATTEDFARTMONGERING-
LIGHTENINGBEASTASAURSOPOD BEHIND
compiling, I'm
not quite following. Assume you had the I_WANT_OUTPUT_DURING_COMPILE
environment variable could you show how you'd be using it?
--
Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/
Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One
::Simple/More/Builder's t/fail*.t tests do this in varying levels
of contortions. They're a bit brutish since they largely predate
Test::Builder and can't trust it anyway, having to do odd things like
writing its own ok() function.
--
Michael G. Schwern [EMAIL PROTECTED]http
On Sat, Dec 22, 2001 at 03:13:12PM -0500, Aaron J Mackey wrote:
On Fri, 21 Dec 2001, Michael G Schwern wrote:
I can never keep it straight when to put an apostrophe on /it'?s/
It's very simple. If you can replace the its with it is, then there's
an apostrophe to denote the contraction
On Sat, Dec 22, 2001 at 09:48:22AM +0100, Philip Newton wrote:
after meditating on this: http://www.angryflower.com/bobsqu.gif
That oversimplifies things a bit; the rule possessive things take
apostrophe-s doesn't apply to pronouns.
Fascinating. Thanks for the patch.
--
Michael G
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
was literally just about to
release 0.40 and I HAD to go read my email first.
Either way, your above ok() solutions still give you no failure
diagnostics, which is the whole point.
--
Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/
Perl Quality Assurance [EMAIL
.
--
Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/
Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One
There is nothing wrong. We have taken control of this sig file. We will
return it to you as soon as you are groovy.
()
Combines a todo test with skip's ability to jump whole blocks.
Useful for when a todo test can't be run at all because it will
die or otherwise cause havoc. Doesn't come up all that often,
but I found myself needing it a few times in the core tests.
--
Michael G. Schwern [EMAIL
.
Couldn't now even if I wanted to. Been around too long, would break
too many tests.
--
Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/
Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One
Stupid am I? Stupid like a fox!
Stas Bekman found a problem with the globals in Test.pm when run under
mod_perl (ie. persistently). Test::More probably has the same
problem.
Also, the license has been changed from Artistic-only to same as Perl.
http://www.pobox.com/~schwern/src/Test-1.19.tar.gz
2001-12-17 Michael G Schwern
nit in 5.004_04
- Little speling mistak
--
Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/
Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One
Hold on while I slip into something a little more naked.
') } );
or even:
ok (eval { ref($foo) $foo-isa('Foo') });
As Kurt already pointed out, you can do:
ok( UNIVERSAL::isa($foo, 'Foo') );
but if it fails you have no idea what $foo was.
--
Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/
Perl Quality
contains by directly reading it?
I'm assuming that it's safe for the test to assume that do/require/use
work with @INC correctly.
Technically, yeah. But Brent's already gone that extra mile.
--
Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/
Perl Quality Assurance
On Sun, Dec 16, 2001 at 10:53:14PM +0100, Abe Timmerman wrote:
Doh, my bad, I had 2.00_01 hanging around on my system.
Works ok on both my regular ActivePerl 5.6.1 (build 628) and freshly compiled
bleadperl
Yay! Thanks.
--
Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com
conforming, objects, just change the
tests.
PS Do you know of anything that does return unpredictably typed
objects?
--
Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/
Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One
36 haikus
would scare
1 - 100 of 182 matches
Mail list logo