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 Tue, Mar 04, 2003 at 09:19:57AM -0600, Andy Lester wrote:
Not sure how I feel about this. If you were still using Pod::Checker,
I'd
definately say it won't fly since it throws so many silly warnings.
You
mentioned a few, the Empty Paragraph and that you can't use =item
foo
On Mon, Mar 03, 2003 at 02:33:32PM -0600, Andy Lester wrote:
There's a new Test::Pod in town, and it uses Sean's Pod::Simple instead
of Pod::Checker.
Details at http://use.perl.org/~petdance/journal/10867
Comments welcome, of course.
The old pod_ok() will still work, but the hoohah
On Thu, Feb 27, 2003 at 09:21:09PM +, Fergal Daly wrote:
I am already not yet convinced. In particular, it makes this sort of test
more difficult than it needs be:
is_deeply($obj, { foo = 42, bar = 23 });
Absolutely, but there is currently no way to do this
is_deeply($obj,
On Thu, Feb 27, 2003 at 10:03:50PM +, Fergal Daly wrote:
- let _deep_check take it's cue from the second argument. If the second
argument is blessed then be strict about the classes, if it's unblessed
then ignore the classes. This should happen at all levels in the
structures.
On Fri, Feb 28, 2003 at 11:40:52AM +, Adrian Howard wrote:
I always meant to revisit the idea for Test::Output which was intended
to be a generic FILEHANDLE output testing module. Allows you to do
things like:
output_is { hello() } hello world\n, STDOUT, hello world;
output_isnt
I'm writing a test which does basic checks on all the code in a repository.
It checks that all scripts and modules compile without warnings. I also
want to check that all the POD has no errors or warnings. However, a
lot of the code has no POD. I don't want to write all the POD right now,
but I
On Mon, Feb 10, 2003 at 07:21:39PM +0400, Vlad Harchev wrote:
But anyway, they more big packages will be recommended, the better, so keep
suggesting them :)
Off the top of my head, some well tested modules:
Math::BigInt
Test::More
some of the recent stuff by Abigail
Test::Harness
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.
http://www.pobox.com/~schwern/src/Test-Simple-0.48_01.tar.gz
Since there's a lot of internal and external change going on in this
release, I decided to put out an alpha first.
The external API changes:
* The Test::Harness upgrade is no longer optional.
* threads.pm is no longer automatically
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
On Sat, Aug 31, 2002 at 02:05:53PM +0200, Elizabeth Mattijsen wrote:
$ perl -Mblib -wle 'use AutoExample; print Yes if
AutoExample-can(foo)'
Using /home/schwern/tmp/AutoExample/blib
Yes
Hmmm... I'm doing BEGIN { use_ok( 'Thread::Pool' ) }... Maybe there is a
difference there...
Hmmm
*already does this*.
schwern@blackrider:/usr/local/src/perl-current$ ./perl -It -MTestInit -wle 'print
@INC; use Cwd; print cwd;'
.../lib
/usr/local/src/perl-current/t
While the result is still ugly, it means we can expand and alter the
requirements for running a core test. For example
. 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
http://www.pobox.com/~schwern/src/Test-Simple-0.47.tar.gz
Two major bugs were added in 0.46. Objects would accidentally be stored
internally causing destructors not to fire when people expected them to.
Also ithread support was broken. These have both been fixed.
0.47 Mon Aug 26 03:54:22
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
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
. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/
Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One
sun readdened wheat stalks
bowing down in autumn sun
my mind wanders far
-- stimps
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
http://www.pobox.com/~schwern/src/Test-Harness-2.02.tar.gz
2.02 Thu Mar 14 18:06:04 EST 2002
* Ken Williams fixed the long standing $^X bug.
* Added HARNESS_VERBOSE
* Fixed a bug where Test::Harness::Straps was considering a test that
is ok but died as passing.
- Added
http://www.pobox.com/~schwern/src/Test-Simple-0.42.tar.gz
Small update. Just fixing a bug in T::B-current_test() to actually
make it work. Folks who need to do tests with forking and such will
be pleased.
0.42 Wed Mar 6 15:00:24 EST 2002
- Setting Test::Builder-current_test() now works
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
http://www.pobox.com/~schwern/src/Test-Inline-0.14.tar.gz
0.14 Thu Feb 28 12:38:53 EST 2002
* pod2test now provides an $Original_File
* Fixed handling of print STDERR ... in tests
* Fixed $_STDERR_ and $_STDOUT_ so they clear themselves
between test blocks (bug reported
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.
http://www.pobox.com/~schwern/src/Test-1.20.tar.gz
After having it pointed out that all of Test.pm's failure diagnostics
were going to STDOUT, and thus not visible via 'make test', I've
changed it so that failure diagnostics go to STDERR so they'll always
show up.
This is similar to the way
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!
http://www.pobox.com/~schwern/src/Module-Info-0.11.tar.gz
Didn't get quite as far as I'd hoped, but I got the hard part's done.
The interesting bit is you can now find every function and method call
in a program (I just realized I'm not handling function calls with
symbolic refs quite right
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
. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/
Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One
Me? A robot? That's rediculous! For one thing, that doesn't compute at all!
. 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
. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/
Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One
I have this god-awful need to aquire useless crap!!!
;
-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
http://www.pobox.com/~schwern/src/Test-Harness-2.01.tar.gz
Test::Harness 2.00 didn't cause any disasters (people are actually
using it, right?) so here's 2.01.
2.01 Thu Dec 27 18:54:36 EST 2001
* Added 'passing' to the results to tell you if the test passed
* Added Test::Harness
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
. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/
Perl Quality Assurance [EMAIL PROTECTED] Kwalitee Is Job One
GuRuThuG make a channel called #Perl, and infest it with joking and
fun it doesnt make alot of sense.
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.
Big release here, folks. Lots of new stuff, knocked off a good chunk
of the TODO list.
http://www.pobox.com/~schwern/src/Test-Simple-0.40.tar.gz
0.40 Fri Dec 14 15:41:39 EST 2001
* isa_ok() now accepts unblessed references gracefully
- Nick Clark found a bug with like() and a regex
1 - 100 of 189 matches
Mail list logo