On Sat, Jul 06, 2002 at 06:57:27PM -0700, chromatic wrote:
My test was:
use_ok( 'Child::Class' );
isa_ok( 'Child::Class', 'Parent::Class' );
I could just as easily check Child::Class::ISA or use UNIVERSAL::isa().
Child::Class-isa('Parent::Class')
--
This sig file
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
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
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
.
+
+=back
--
Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/
Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One
Tasty, yet morally ambiguous.
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
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
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.
really built, they're already in lib/. All XS modules are built
and their results put into lib/ and then the tests are run.
So, effectively, the core installs every modules into lib/ then runs all
their tests. This is so module A's tests can find module B.
--
Michael G. Schwern [EMAIL
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
?
--
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.
On Fri, Aug 30, 2002 at 11:57:16AM +0100, Nick Ing-Simmons wrote:
Michael G Schwern [EMAIL PROTECTED] writes:
On Fri, Aug 30, 2002 at 05:54:15PM +1000, Ken Williams wrote:
Oh, one big lib/, not several different ones? So then why can't it be
run with
perl -Mblib=lib t/foo/bar.t
. 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
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
the TEST_VERBOSE environment variable to print out the name
of each test before it's run.
--
Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/
Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One
It's Tobacco time!
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
.
--
Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/
Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One
Perl_croak(aTHX_ Believe me, you don't want to use \-u\ on a Macintosh);
-- toke.c
complicated and the use
more prone to subtle bugs such as forgetting that foo(MemUsed); should
probably be foo(scalar MemUsed);
--
Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/
Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One
-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
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.
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
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!
;
sub wiffle {
something(@_);
}
...and in your test code...
use Test::Foo;
wiffle();
Ooops.
--
Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/
Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One
Death
;
is(...);
binary_is(...);
See http://www.pobox.com/~schwern/talks/Writing_A_Test_Library/full_slides/
for details about using Test::Builder.
--
Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/
Perl Quality Assurance [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
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
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/
On Thu, Jun 05, 2003 at 10:55:29AM +0100, Mark Fowler wrote:
On Thu, 5 Jun 2003, [iso-8859-1] Andrew Savige wrote:
While a standard name is not required, having one would allow
automated CPAN test harnesses to run the longer tests.
While we're on it, it'd be nice to have a standard
On Mon, Jun 23, 2003 at 05:49:06PM +0100, Fergal Daly wrote:
I'm looking for comment or suggestions about this new module. It's
independent of and complementary to Test::Warn. It tests that your test
script didn't emit any warnings. Just add
use Test::More::None;
to the top your
On Tue, Jun 24, 2003 at 10:59:43AM +0200, Tels wrote:
On Mon, Jun 23, 2003 at 05:49:06PM +0100, Fergal Daly wrote:
I'm looking for comment or suggestions about this new module. It's
independent of and complementary to Test::Warn. It tests that your test
script didn't emit any
On Tue, Jun 24, 2003 at 12:07:19PM +0100, Fergal Daly wrote:
Consider the following.
use Test::More;
use Test::Warn::None;
plan tests = 42;
To make this work I'd have to overhaul the internal Test::Builder planning
system to allow Test::Warn::None to say I'm going to
On Tue, Jun 24, 2003 at 12:37:36PM +0100, Fergal Daly wrote:
Also how about calling it Test::Warn::Auto? I'm not particularly happy with
None,
Test::Warn::Auto doesn't say anything about its main purpose: to ensure
that you have no warnings. Instead it documents an implementation detail,
that
On Wed, Jun 25, 2003 at 07:09:26PM +0100, Fergal Daly wrote:
I just thought of a big problem with plan extensions. If the script silently
eat's itself just before you extend the plan, then you don't know that
anything went wrong.
It would have to also exit normally. That is rare.
--
Is
On Sat, Jun 28, 2003 at 10:13:06PM +0100, Fergal Daly wrote:
On Saturday 28 June 2003 02:51, Michael G Schwern wrote:
When I merged Test::Simple with Test::More I left a Test-More tarball lying
around containing a Makefile.PL which simply died saying download
Test-Simple instead.
That's
I have an odd proposition to make. I'd like to do some travelling in the
coming months. Specificly, I've a friend's wedding in Pittsburgh, PA I'd
like to attend in September and I'd really like to be there for the Global
Balalaika Show at the Helsinki Festival this year in August.
Of course,
I had an idea yesterday. On more than one occassion, a I've been asked
about running tests against a live site. My usual waffle is to talk about
assertions or to build a seperate test suite which is explicitly non-modifying.
Or something Skud came up with which was to tag blocks of tests in the
On Fri, Aug 01, 2003 at 01:07:15PM -0700, Michael G Schwern wrote:
Another way is to use a TEST: block
and have Filter::Simple strip them out.
TEST: {
cmp_ok( ... );
}
snip
Questions? Comments? Approval?
Hell, why wait for wiser heads?
http://www.pobox.com/~schwern/Test
Make that...
http://www.pobox.com/~schwern/src/Test-AtRuntime-0.01.tar.gz
--
I knew right away that my pants and your inner child could be best friends.
On Sat, Aug 02, 2003 at 12:09:22AM +0100, Adrian Howard wrote:
- Rather than running tests at live time, I'm more often doing the
opposite. I have assertions that I only want to switch on at testing
time since that is when I'm exercising things that might break.
- This sort of
On Fri, Aug 01, 2003 at 11:02:19PM -, Rafael Garcia-Suarez wrote:
Michael G Schwern wrote in perl.qa :
The only part missing is the ability to shut the tests off once you've
released it to production.
You could perhaps use the assertion feature of perl = 5.9.0
(assertion.pm
On Sat, Aug 02, 2003 at 11:22:43AM -0700, chromatic wrote:
Could these instead be subroutine attributes? I can see a lot of
advantages there.
I know very little about subroutine attributes, so you're going to have
to investigate that one.
Keep in mind, though, that we want the *whole call to
On Sat, Aug 02, 2003 at 11:43:26AM -0700, Ovid wrote:
This does mean, though, that it won't play nicely with versions of Perl 5.6.0. Is
that trade
off acceptable?
I'll throw in the fallback if DEBUG style
TEST {
my $sky = look('up');
is( $sky, 'blue' );
} if
On Sat, Aug 02, 2003 at 05:02:58PM +0100, Adrian Howard wrote:
Or even more trivially, take Test::AtRuntime and swap
out Test::Builder::ok() with something that dies on failure.
[snip]
I was thinking about the ability to have an assertion block - so you
could do (something like):
ASSERT
As I've obtained a stable server on which I have root, I've moved the
QA Wiki there so the permissions problems which have plagued it will be
no more!
The existing URL will work fine.
http://www.pobox.com/~schwern/cgi-bin/perl-qa-wiki.cgi
--
Michael G Schwern[EMAIL PROTECTED] http
.
I've put up a Wiki page to generate a listing.
http://www.pobox.com/~schwern/cgi-bin/perl-qa-wiki.cgi?TestingBooks
--
Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/
Death was thought to be fatal.
-- Craig A. Berry in [EMAIL PROTECTED]
On Fri, Aug 15, 2003 at 09:25:05AM -, Rafael Garcia-Suarez wrote:
Michael G Schwern wrote in perl.qa :
http://www.pobox.com/~schwern/cgi-bin/perl-qa-wiki.cgi
Do you want a link to this from qa.perl.org ?
Sure.
--
Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com
has is_impolite() and
is_naughty() but didn't see any checks for basic path name validity.
BTW, is Archive::Any a dead camel?
Its just resting.
--
Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/
That you be hanged by the neck, but not until you are dead, but that you
of the individual changes.
Says who?
--
Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/
It's Airplane Glue sniffing time!
will do it.
--
Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/
purl Hey Schwern! honk, honk, honk, honk, honk, honk, honk, honk,
honk, honk, honk, honk, honk, honk, honk, honk, honk, honk, honk,
honk, honk, honk, honk, honk, honk, honk, honk, honk, honk, honk,
honk, honk
On Thu, Jul 24, 2003 at 10:55:57AM +1000, Andrew Savige wrote:
I'd be interested to see an example of sub-classing Test::Harness.
See examples/mini_harness.plx in Test::Harness.
The straps interface is not yet entirely usable.
--
Michael G Schwern[EMAIL PROTECTED] http
it. So you can
test this out without modifying TH, although it would be nice if TH
understood this format.
I don't think we can get away with T::H not being modified.
--
Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/
mendel ScHWeRnsChweRNsChWErN
On Wed, Aug 20, 2003 at 10:34:08AM +0100, Fergal Daly wrote:
On Wednesday 20 August 2003 08:23, Michael G Schwern wrote:
You don't want subtests to have to know any state, such as how far to
indent. Why? Consider:
Something has to keep state
The state of the overall test? No, that's
On Wed, Aug 20, 2003 at 02:00:28PM +0100, Adrian Howard wrote:
On Wednesday, August 20, 2003, at 11:52 am, Michael G Schwern wrote:
[snip]
I've yet to see a real use-case for plans of plans.
[snip]
Anywhere when you want to have plans at a higher level of granularity
than a test script
| *|
++--+
Writing Makefile for Tornado::ConnectionHandler
Since PAUSE is down it hasn't been uploaded to CPAN yet. You can get it
here: http://keroes.com/perl/
--
Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/
It's Tobacco time!
the no_plan style so that it has to produce some sort of header.
It might be literally 1..N.
--
Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/
Cheating is often more efficient.
- Seven of Nine
On Thu, Aug 21, 2003 at 08:34:44AM -0500, Danny R. Faught wrote:
Michael G Schwern wrote:
What books out there are of use for those wanting to learn Perl testing?
They don't necessarily have to be specificly about *Perl* testing.
I've put up a Wiki page to generate a listing.
http
thread 1 will have a number starting with 1. and
thread 2 will have 2. etc
This is convincing.
--
Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/
Shrtr is btr.
-- Abhijit Menon-Sen in [EMAIL PROTECTED]
of results than tests ran!
This should never happen! Please contact the author immediately!
END failed--call queue aborted.
Looks like an ithreads bug. Forwarded it to p5p for analysis.
--
Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/
1. You are thin.
2. You look great.
3
() should consider them equal.
--
Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/
Remember, any tool can be the right tool.
-- Red Green
importantly, I'm *not* betting against the test author. If they wrote
a test for string equality (which is what is() pretty much is) then that's
what they'll get.
--
Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/
Playstation? Of course Perl runs on Playstation
then there is
no point in continuing.
Well then, I guess there's no point in continuing. ;)
--
Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/
Woah, like, did anybody see my watch?
PROTECTED] http://www.iki.fi/jhi/ There is this special
biologist word we use for 'stable'. It is 'dead'. -- Jack Cohen
- End forwarded message -
--
Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/
Playstation? Of course Perl runs on Playstation.
-- Jarkko
, but don't let that hold you up Jarkko.
--
Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/
Cottleston, Cottleston, Cottleston Pie.
A fly can't bird, but a bird can fly.
Ask me a riddle and I reply:
Cottleston, Cottleston, Cottleston Pie.
on the assumption that folks
have worked around them and/or aren't bothered by them. I know folks are
bothered by the overload bug.
Sorry to be so troublesome about this, but as RFC 1925's Rule #1 states
It Has To Work.
--
Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern
://www.pobox.com/~schwern/tmp/mcp_eol.wav
--
Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/
Stupid am I? Stupid like a fox!
grows in Brooklyn' );
This does not check if Cexists $brooklyn{tree} is true, it checks if
it returns 1. Very different. Similar caveats exist for false and 0.
In these cases, use ok().
ok( exists $brooklyn{tree},'A tree grows in Brooklyn' );
--
Michael G Schwern[EMAIL PROTECTED
.
Some ideas:
* wheater PREREQ_PM matches used modules (hard!)
Nearly impossible since:
require Foo::Bar if $some_condition;
Otherwise Module::Info-modules_used() can handle it.
--
Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/
AY! The ground beef, she is burning
.
--
Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/
I know you get this a lot, but what's an unholy fairy like you doing in a
mosque like this?
.
Quite a lot come with two or three of those files.
Could we infer that a distribution that comes with several Makefile.PLs
may have an overcomplicated build process, maybe indicating a low
kwalitee ?
No, there's nothing wrong with having sub-build directories.
--
Michael G Schwern
. If a test fails, make test will
still succeed. Still, its better than nothing at all.
So t/* should hint more kwalitee than only test.pl
Yes.
--
Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/
Death follows me like a wee followey thing.
-- Quakeman
On Wed, Oct 15, 2003 at 10:34:19PM -, Rafael Garcia-Suarez wrote:
Michael G Schwern wrote in perl.qa :
This all suggests another check: stray files. Emacs backup files. CVS
directories. Empty directories. #...# backup files. Makefiles shipped
with Makefile.PL, Build and _build
::More. Barring any Unicode-related fiascos (of which I am proudly
and blissfully unaware), they probably haven't been converted yet.
See perlhack for details.
--
Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/
I'm not actually Kevin Lenzo, but I play him on TV.
work back to 5.4.0.
--
Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/
You and your facts and your physics. Pah, I say.
http://www.goats.com/archive/981221.html
-Simple's another good one. 44 programs, 267 tests, no dependencies,
backwards compatible to 5.4.0, does some complex stuff (evals, %SIG,
tied handles, system()...).
--
Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/
Here's some scholarly-ass opinions...
On Tue, Oct 21, 2003 at 12:34:44PM -0500, Dave Rolsky wrote:
Anyway, my taint mode experience has been that random things break in very
weird ways when using it.
All the more reason to test with it on. :)
--
Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/
Do
On Sun, Oct 26, 2003 at 04:45:48PM +1100, Andrew Savige wrote:
Michael G Schwern wrote:
Since skip_all will exit immediately you can fold that big everything
inside the else block away.
eval 'use Test::Pod';
my $have_testpod = !$@ and $Test::Pod::VERSION = 0.95;
plan skip_all = Test
write special case
code to skip those files that should not be checked.
--
Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/
The Power almighty rests in this Lone Ring.
The Power, alrighty, for doing your Own Thing.
If broken or busted, it cannot be remade.
If found, send
for. Lately, I've been spending my free time on prove
and Test::Harness.
*cough*wiki*cough*
;)
--
Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/
Stupid am I? Stupid like a fox!
to put that into a module
as well (look at MakeMaker::Test::Setup::* in a very recent MakeMaker for
an example).
--
Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/
Playstation? Of course Perl runs on Playstation.
-- Jarkko Hietaniemi
On Sat, Nov 15, 2003 at 02:51:26PM +1100, Andrew Savige wrote:
Michael G Schwern wrote:
I use t/lib so the top level t/ directory doesn't get cluttered (and for
compatibility with the Perl core which may be important later for A::T).
Yes, I like that. Should I call it:
t/lib/Test
testing position.
--
Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/
Congratulations, you're a thieving bastard... Now give me back my pants.
That's MISTER Pants!
-- Ian's Adventures In Morrowind
http://www.machall.com/morrowind/page3.html
don't write wrappers around Test::More. You use the same underlying
class Test::More does: Test::Builder. This includes, oddly enough, like()!
--
Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/
Do not try comedy at home! Milk Cheese are advanced experts! Attempts
as it's consistent, and I can set it easily in CPAN.pm without
having to write a wrapper (via make_arg).
Consistency? I think you've chosen the wrong programming language, sir!
--
Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/
The plot seems complicated at first
bad thing');
Now $ex is global but I think I cannot test within the catch block.
Why not?
catch MyError with {
like( $ex, qr/Bad thing/ );
};
--
Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/
Good tidings, my native American
On Wed, Dec 03, 2003 at 10:20:03AM +, Fergal Daly wrote:
On Tue, Dec 02, 2003 at 10:05:46PM -0800, Michael G Schwern wrote:
Why not?
catch MyError with {
like( $ex, qr/Bad thing/ );
};
If there is no exception then then that test won't execute. It'd have
on machine A would be
roughly twice as long as a pmip on a machine that's twice as fast.
This enables us to test make sure this isn't too slow.
--
Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/
PS I am very handsome and I live in a castle with a pony.
, $perl_code, XS is 5 times faster)
But I don't think that was what Jim wanted, it seemed like he was trying to
display benchmark info purely for informational purposes,
For that I'd recommend doing what DBI does and putting the benchmarking
code into test.pl.
--
Michael G Schwern[EMAIL
for warnings rather than just pass and fail
then this would be more useful,
print STDERR or diag(). Test::Harness doesn't need to know anything about
warnings. If it can't fail its not really a test.
--
Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/
It's Highball time!
:
(a) what I'm doing wrong
(b) where to find information on these reports
(c) whether there's a much more appropriate list for these questions
If you're feeling your oats you can hop onto irc.perl.org #perl and track
down obra (aka Jesse).
--
Michael G Schwern[EMAIL PROTECTED] http
. Tests 1 through 5 failed. That might be a
problem.
--
Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/
What about MY need to be generalized and easily dismissed?
http://www.goats.com/archive/000221.html
over them.
I, the library designer, write isa_ok() and can_ok() as convenience
functions. Part of this convenience is providing sensible default names
so you don't have to.
--
Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/
If you got the wax out of your ears you
;
return $result;
}
1;
--
Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/
Please Captain, not in front of the Klingons.
= $TB-is_eq($got, $expected);
}
$TB-diag($diag) if !$result and @_ == 3;
}
1;
--
Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/
3. With sufficient thrust, pigs fly just fine. However, this is
not necessarily a good idea. It is hard to be sure where
::Straps currently picks these up as
type other but it may change to comment later.
--
Michael G Schwern[EMAIL PROTECTED] http://www.pobox.com/~schwern/
You and your facts and your physics. Pah, I say.
http://www.goats.com/archive/981221.html
401 - 500 of 1466 matches
Mail list logo