Re: testing Parallel::Simple

2005-03-04 Thread David A. Golden
Ofer Nave wrote: Well, I'm just starting to write tests now. Once I'm comfortable with that, in the future I can try writing the tests first. But the module is already written, and I've already posted it many other places to get feedback on design and implementation. It's not very complicated

dynclasses OS X test failures - a Perl task

2005-03-04 Thread Leopold Toetsch
It's really nice to have the desk cluttered with 3 PCs. I ran t/dynclass/pyint_1.imc parallel through gdb and tried to track down, why it segfaults on OS X. Eventually I found this: $ grep -2 parents dynclasses/pynci.dump linux/i386: 'class' => 'PyNCI', 'parents' => [ 'NCI', 'PyFunc

[PUGS] patch #1

2005-03-04 Thread Stevan Little
Autrijus This patch un-TODOs the t/op/push.t, t/op/auto.t tests as well as restors the kwid docs in Test.pm - Steve pugs-2005-03-05-n1.patch Description: Binary data

Re: [PUGS] Bugs

2005-03-04 Thread Autrijus Tang
On Wed, Mar 02, 2005 at 03:17:03PM -0500, Stevan Little wrote: > I have managed to track down two different bugs/issues with PUGS. I > explain them here in detail with examples, and todo_* tests for them > are included in the following test files: > t/op/shift.t > t/op/pop.t > t/op/push.t >

Pugs patch, anon block tests

2005-03-04 Thread Yuval Kogman
Hola.. This test ensures that anon blocks not only parse, but actually run, and also tests for the implicit semicolon bug. -- () Yuval Kogman <[EMAIL PROTECTED]> 0xEBD27418 perl hacker & /\ kung foo master: /me tips over a cow: neeyah!! Auto-merging (0, 5) /pugs to /mirr

Test::WWW::Mechanize 1.04

2005-03-04 Thread Andy Lester
I've updated Test::WWW::Mechanize to add get_ok() and follow_link_ok() methods. If you've been writing $mech->get( $url ); ok( $mech->success, 'Fetched home page' ); you can now do that as $mech->get_ok( $mech->success, 'Fetched home page' ); xoxo, Andy -- Andy Lester => [EMAIL PROTECT

Re: Pugs patch, anon block tests

2005-03-04 Thread Autrijus Tang
On Fri, Mar 04, 2005 at 06:19:37PM +0200, Yuval Kogman wrote: > Hola.. This test ensures that anon blocks not only parse, but > actually run, and also tests for the implicit semicolon bug. Thanks, applied. The execution has been fixed, and implicit semicolon will be, soon. Thanks, /Autrijus/ p

Talk: Why You Really Want To Write Tests

2005-03-04 Thread Michael G Schwern
I just got back from JOIN (Jornadas de Informatica) 2005, a little student run conference at the University of Minho in Portugal. Why this might be of interest is its the same place and largely the same folks who will be running YAPC::Europe. http://natura.di.uminho.pt/join2005/out/news_en.html I

[PUGS] patch to un-TODO

2005-03-04 Thread Stevan Little
This patch un-TODOs a bunch of tests pugs-2005-03-05-n2.patch Description: Binary data

[PUGS] patch for subs returning list ref bug

2005-03-04 Thread Stevan Little
Autrijus, This patch adds some tests for subroutines and specifically their return values. The last set of tests is for the issue I described earlier where a sub which returns a list ref does not work correctly (it returns the last element in the list basically). - Steve pugs-2005-03-05-n3.p

[OT] paging Dr. Sugalski, please consult on Devel::Size

2005-03-04 Thread Jim Cromie
folks, Attached is a patch to Devel::Size which computes CV / coderef sizes. It includes some bad/place-holder pod. Feedback (off this list) is welcome. tia Jim Cromie patch.dsize.60_06.bz2 Description: BZip2 compressed data

darcs patch: Basic test for try { CATCH {} }

2005-03-04 Thread Yuval Kogman
Fri Mar 4 19:51:51 IST 2005 Yuval Kogman <[EMAIL PROTECTED]> * Basic test for try { CATCH {} } No good examples in exegis/apocalypse Only does CATCH (no other constructs, no default) Does not tests 'use fatal' stuff -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 New patches: [Basic test

darcs patch: Add myself to AUTHORS file

2005-03-04 Thread Yuval Kogman
Fri Mar 4 20:06:00 IST 2005 Yuval Kogman <[EMAIL PROTECTED]> * Add myself to AUTHORS file -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 New patches: [Add myself to AUTHORS file Yuval Kogman <[EMAIL PROTECTED]>**20050304180600] { hunk ./AUTHORS 34 +Yuval Kogman (NUFFIN) } Context: [

darcs patch: Array intepolation is str context

2005-03-04 Thread Yuval Kogman
Fri Mar 4 20:22:02 IST 2005 Yuval Kogman <[EMAIL PROTECTED]> * Array intepolation is str context -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 New patches: [Array intepolation is str context Yuval Kogman <[EMAIL PROTECTED]>**20050304182202] { hunk ./t/op/string_interpolation.t 14 - -plan 4;

Re: darcs patch: Add myself to AUTHORS file

2005-03-04 Thread Luke Palmer
Yuval Kogman writes: > Fri Mar 4 20:06:00 IST 2005 Yuval Kogman <[EMAIL PROTECTED]> > * Add myself to AUTHORS file Thanks, applied. Luke

Re: dynclasses OS X test failures - a Perl task

2005-03-04 Thread Andy Dougherty
On Fri, 4 Mar 2005, Leopold Toetsch wrote: It's really nice to have the desk cluttered with 3 PCs. I ran t/dynclass/pyint_1.imc parallel through gdb and tried to track down, why it segfaults on OS X. Eventually I found this: $ grep -2 parents dynclasses/pynci.dump linux/i386: 'class' => 'PyNCI

[Pugs] patch for lots of stuff

2005-03-04 Thread Stevan Little
Autrijus, This patch has - Added ChangeLog info for 6.0.10 (hope this cover it well) - un-TODO-ed tests in t/op/shift.t - Fixed a misunderstanding regarding list flattening in t/op/unshift.t and t/op/push.t Enjoy, - Stevan pugs-2005-03-05-n4.patch Description: Binary data

darcs patch: Test for assignment (parse?) bug

2005-03-04 Thread Yuval Kogman
Fri Mar 4 21:35:24 IST 2005 Yuval Kogman <[EMAIL PROTECTED]> * Test for assignment (parse?) bug Assignment of already declared var differs from assignment during declaration. The latter is broken, seemingly with weird context or percedence issues. -BEGIN PGP SIGNED MESSAGE- Hash:

Re: How are types related to classes and roles?

2005-03-04 Thread Thomas Sandlaß
HaloO Larry, you wrote: One can view the auto-coercion as a form of MMD if you allow the autogeneration of any necessary coercion methods. However, it's not exactly a coercion to Str or Int--it's more like promotion to a Scalar that is able to pretend it is either Str or Int. Or you can view it a

Re: Containers vs Objects.

2005-03-04 Thread Thomas SandlaÃ
Luke Palmer wrote: And in fact, one of the big questions that's always in the back of my mind (that I'm not searching for an answer to, but I'm always observing for one) is: what do @ and % mean these days? Another idea: they define the subsystem of the type system that uses structural subtyping as

Re: How are types related to classes and roles?

2005-03-04 Thread chromatic
On Fri, 2005-03-04 at 21:12 +0100, Thomas Sandlaß wrote: > The roles themself beeing the least member of these classes---uninstanciable > "pure" > behaviour. The intersection type/role A&B is multiple inheritance (or is that > "roling"?): I don't understand the question (I don't recognize the wo

Re: PPC jit fixes - hopefully

2005-03-04 Thread Matt Diephouse
On Fri, 4 Mar 2005 08:48:06 +0100, Leopold Toetsch <[EMAIL PROTECTED]> wrote: > Ok. I've duplicate jit/ppc/asm.s to jit/ppc/ppc-linux.s, removed the > leading underscore and the register name prefixes. > > config/auto/jit.pl should now use this file for the platform > "ppc-linux". Can someone th

Re: PPC jit fixes - hopefully

2005-03-04 Thread Matt Diephouse
On Fri, 4 Mar 2005 16:24:30 -0500, Matt Diephouse <[EMAIL PROTECTED]> wrote: > On Fri, 4 Mar 2005 08:48:06 +0100, Leopold Toetsch <[EMAIL PROTECTED]> wrote: > > Ok. I've duplicate jit/ppc/asm.s to jit/ppc/ppc-linux.s, removed the > > leading underscore and the register name prefixes. > > > > config

Re: How are types related to classes and roles?

2005-03-04 Thread Thomas Sandlaß
HaloO chromatic, you wrote: I don't understand the question (I don't recognize the words "lubs" or "glbs", for example), but I don't think this has anything at all to do with multiple inheritance. Sorry, that was given only in the picture: lub = least upper bound (also known as supremum) glb = gr

Re: PPC jit fixes - hopefully

2005-03-04 Thread chromatic
On Fri, 2005-03-04 at 16:24 -0500, Matt Diephouse wrote: > Can someone that #32514 can be closed? > > https://rt.perl.org/rt3/Ticket/Display.html?id=32989 Yes, close it. > And #27414 along with it: > > https://rt.perl.org/rt3/Ticket/Display.html?id=27414 I don't see the failures (and have

[perl #34340] [BUG] OS X ASM build problem

2005-03-04 Thread via RT
# New Ticket Created by Will Coleda # Please include the string: [perl #34340] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=34340 > OS X build isn't quite right. darwin hints defines "platform_asm", but this file isn't

Re: Phalanxing MakeMaker

2005-03-04 Thread Michael G Schwern
On Thu, Feb 24, 2005 at 11:47:31AM -0600, Ken Williams wrote: > Better would be to snark it from ExtUtils::CBuilder, which has a > has_compiler() method. How portable is this? I see there's some minimal VMS and OS/2 code in there, will it work? If so then the MakeMaker tests can just use have_c

Re: How are types related to classes and roles?

2005-03-04 Thread Thomas Sandlaß
I wrote: A|B lub (lowest upper bound) / \ / \ A 0 B / \ / \ / \ / \ / A&B \ glb (greatest lower bound) / 1 / \ 2 \ / / 3 \ \ I was a bit

Re: Phalanxing MakeMaker

2005-03-04 Thread Ken Williams
On Mar 4, 2005, at 4:07 PM, Michael G Schwern wrote: On Thu, Feb 24, 2005 at 11:47:31AM -0600, Ken Williams wrote: Better would be to snark it from ExtUtils::CBuilder, which has a has_compiler() method. How portable is this? I see there's some minimal VMS and OS/2 code in there, will it work? It s

Re: Talk: Why You Really Want To Write Tests

2005-03-04 Thread James E Keenan
Michael G Schwern wrote: I was asked to give something about testing to an audience of undergraduate informatics students, largely Haskell and maybe some Java. What I finally came up with is this: http://www.pobox.com/~schwern/talks/Why_Test/ Liked the emphasis on version control. Had to learn

[pugs] fix TODO tests in given.t

2005-03-04 Thread Garrett Rooney
There are two todo tests in given.t that have # in their desc string, which is confusing 'make test'. Here's a diff to remove the #s, so they no longer show up as failing. -garrett Index: t/base/given.t === --- t/base/given.t

Test::Output 0.05

2005-03-04 Thread Shawn Sorichetti
Test::Output 0.05 has been released. The main difference in this version is a patch from chromatic (thank you). His patch fixed a bug where all tests printed error diags even if they passed. Additional tests were added to ensure that no output is sent from diag in successful tests. While releas

Re: Talk: Why You Really Want To Write Tests

2005-03-04 Thread Michael G Schwern
On Fri, Mar 04, 2005 at 06:51:41PM -0500, James E Keenan wrote: > Liked the emphasis on version control. Had to learn Subversion as part > of working in Phalanx project -- and had to learn Test::More much > better. Glad I did both. While I tried to keep the talk focused on just testing I found

Re: Test::Output 0.05

2005-03-04 Thread Ofer Nave
Shawn Sorichetti wrote: Test::Output 0.05 has been released. The main difference in this version is a patch from chromatic (thank you). His patch fixed a bug where all tests printed error diags even if they passed. Additional tests were added to ensure that no output is sent from diag in success

Re: Test::Output 0.05

2005-03-04 Thread Michael G Schwern
On Fri, Mar 04, 2005 at 04:27:07PM -0800, Ofer Nave wrote: > Random thought: Could Devel::Cover be automatically run against all > modules in CPAN, with ratings posted on cpan.org right next to the usual > test results? It still chokes on certain not uncommon constructs like threads.

Re: Test::Output 0.05

2005-03-04 Thread Ofer Nave
Michael G Schwern wrote: On Fri, Mar 04, 2005 at 04:27:07PM -0800, Ofer Nave wrote: Random thought: Could Devel::Cover be automatically run against all modules in CPAN, with ratings posted on cpan.org right next to the usual test results? It still chokes on certain not uncommon constructs

Re: Test::Output 0.05

2005-03-04 Thread Ofer Nave
Abe Timmerman wrote: Random thought: Could Devel::Cover be automatically run against all modules in CPAN, with ratings posted on cpan.org right next to the usual test results? Looking for something like this: http://pjcj.sytes.net/cpancover/ (The link is available from http://qa.perl.o

[pugs] &?SUB and pointy subroutines

2005-03-04 Thread Garrett Rooney
I'm having some trouble using the &?SUB variable in a subroutine declared with the -> operator. The following code results in an error about &?SUB being undefined: my $s = -> $count { if $count < 10 { say $count; &?SUB($count + 1); } }; $s(1); If I change to either a named sub (sub

Re: [pugs] fix TODO tests in given.t

2005-03-04 Thread Luke Palmer
Garrett Rooney writes: > There are two todo tests in given.t that have # in their desc string, > which is confusing 'make test'. Here's a diff to remove the #s, so they > no longer show up as failing. Thanks, applied. Luke

Re: [pugs] &?SUB and pointy subroutines

2005-03-04 Thread Luke Palmer
Garrett Rooney writes: > I'm having some trouble using the &?SUB variable in a subroutine > declared with the -> operator. The following code results in an error > about &?SUB being undefined: > > my $s = -> $count { > if $count < 10 { > say $count; > &?SUB($count + 1); > } > }; >

Re: [pugs] &?SUB and pointy subroutines

2005-03-04 Thread Garrett Rooney
Luke Palmer wrote: That's because a pointy sub is not a sub. Perhaps we should call it a pointy block. That might be clearer ;-) Not all code objects are Subs. If you call "return", then you return from the innermost enclosing "sub", which is marked by that word. Likewise does $?SUB. I don't bel

Re: [pugs] &?SUB and pointy subroutines

2005-03-04 Thread Luke Palmer
Garrett Rooney writes: > >Not all code objects are Subs. If you call "return", then you return > >from the innermost enclosing "sub", which is marked by that word. > >Likewise does $?SUB. I don't believe $?BLOCK has been implemented yet, > >but it will. > > If that's the case then the "Pointy su

Re: Test::Output 0.05

2005-03-04 Thread Michael G Schwern
On Fri, Mar 04, 2005 at 04:44:42PM -0800, Ofer Nave wrote: > Is it possible to tell quasi-reliably if the code in question uses > threads and skip it? On that note, is forking also problematic? Not really. Anywhere within the test or any code called by the test might use threads. Devel::Cover

[pugs] spurious successes in t/base/given.t

2005-03-04 Thread Garrett Rooney
There are two unexpected successes in given.t (it must be my night for finding things with that file...), but unfortunately they're not because pugs is magically doing the right thing, they're because it's doing the wrong thing in a way that exactly matches what the test is looking for, if you

Re: [pugs] spurious successes in t/base/given.t

2005-03-04 Thread Luke Palmer
Garrett Rooney writes: > There are two unexpected successes in given.t (it must be my night for > finding things with that file...), but unfortunately they're not because > pugs is magically doing the right thing, they're because it's doing the > wrong thing in a way that exactly matches what th

darcs patch: Bug in test: conditional of expected value was not wor...

2005-03-04 Thread Yuval Kogman
Fri Mar 4 20:59:46 IST 2005 Yuval Kogman <[EMAIL PROTECTED]> * Bug in test: conditional of expected value was not working -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 New patches: [Bug in test: conditional of expected value was not working Yuval Kogman <[EMAIL PROTECTED]>**20050304185946] {

Re: darcs patch: Bug in test: conditional of expected value was not wor...

2005-03-04 Thread Luke Palmer
Yuval Kogman writes: > Fri Mar 4 20:59:46 IST 2005 Yuval Kogman <[EMAIL PROTECTED]> > * Bug in test: conditional of expected value was not working Thanks, applied. Kept Garrett's change in the conflict. Luke

[pugs] test for %hash.kv

2005-03-04 Thread Garrett Rooney
Since the first thing I actually tried to do with Pugs was to use the %hash.kv method (see S04.pod) to iterate over the keys and values in a hash, and it of course didn't work since it hasn't been implemented yet, I figured I should at least send in a test for it. Here's a diff to t/op/hash.t a

Re: [pugs] test for %hash.kv

2005-03-04 Thread Luke Palmer
Garrett Rooney writes: > Since the first thing I actually tried to do with Pugs was to use the > %hash.kv method (see S04.pod) to iterate over the keys and values in a > hash, and it of course didn't work since it hasn't been implemented yet, > I figured I should at least send in a test for it.

[pugs] loop + my test

2005-03-04 Thread Garrett Rooney
It seems that the loop statement currently doesn't let you declare variables inside it, so the following code: loop (my $i = 0; $i < 10; $i++) { } doesn't work. Here's a test for the problem. -garrett Index: t/base/loop.t === --- t/

Re: [pugs] loop + my test

2005-03-04 Thread Luke Palmer
Garrett Rooney writes: > It seems that the loop statement currently doesn't let you declare > variables inside it, so the following code: > > loop (my $i = 0; $i < 10; $i++) { } > > doesn't work. Here's a test for the problem. Thanks, applied.

Re: [PUGS] Bugs

2005-03-04 Thread Larry Wall
On Sat, Mar 05, 2005 at 12:04:16AM +0800, Autrijus Tang wrote: : The double evaluation bug has been fixed today. It was result of a : misunderstanding of the role of $_ when the subroutine body does : not mention $_, but makes use of slurpy arrays (as is the default with : @*_), and has no invocan

Pugs 6.0.10 released.

2005-03-04 Thread Autrijus Tang
Pugs 6.0.10 should be available on a CPAN near you soon; you may also download it from: http://autrijus.org/dist/Perl6-Pugs-6.0.10.tar.gz Again, much kudos on the #perl6 / p6c team for making it happen. :) Thanks, /Autrijus/ [Changes for 6.0.10 - March 5, 2005] Pugs Internals: * Massive -

Test::* Modules, Devel::Cover, Phalanx [was Test::Output 0.05]

2005-03-04 Thread James E Keenan
Ofer Nave wrote: Shawn Sorichetti wrote: Test::Output 0.05 has been released. Renaming thread since only the OP referred to Test::Output. It occurs to me that the Test::* and ExtUtils::* modules should be the first stop for the Phalanx project. :) At least as originally proposed by project lead

Re: Test::Output 0.05

2005-03-04 Thread Andy Lester
It occurs to me that the Test::* and ExtUtils::* modules should be the first stop for the Phalanx project. :) That's why there are a bunch of 'em listed up at the top of the P100. Incidentally, is it acceptable for an author to Phalanx-review his own module Sure, but you should be doing that any

Re: Test::* Modules, Devel::Cover, Phalanx [was Test::Output 0.05]

2005-03-04 Thread Andy Lester
At least as originally proposed by project leader Andy Lester, Phalanx was supposed to focus on *non-core*, Not exactly. I just figured it's easier for teams to submit tests back to individual authors than back to Perl itself. Also, those patches are more likely to get out into the mainstream,