RFC: Test::JSON

2005-11-12 Thread Ovid
yet, I've attached a copy. Feedback welcome. Internally it uses the following: 'JSON' => 1.00, 'Test::Differences' => 0.47, 'Test::Simple' => 0.62, 'Test::Tester' => 0.103, Cheers, Ovid -- If this message is a res

Re: CPANTS: released_while_burning_midnight_oil

2005-11-14 Thread Ovid
m sure that the incidence of silly errors > in distributions would decrease after adding this test. ;-) Oh, great. You want to ensure I never release another module. Thanks. Cheers, Ovid -- If this message is a response to a question on a mailing list, please send follow up questions to the l

Re: RFC: Test::JSON

2005-11-14 Thread Ovid
ve dropped Test::Differences "eq_or_diff" and just used the "is_deeply" function from Test::More, but when working with large data structures, there's just no comparison between the two. I suppose I could make Test::Differences optional and fall back on is_deeply if they don't h

Re: CPANTS: released_while_burning_midnight_oil

2005-11-14 Thread Ovid
s more appropriate with helicopters, though, white or > red? I'd recommend a nice glass of Cigar Volant (http://www.strangehorizons.com/2005/20050905/lucianovic-c.shtml) Cheers, Ovid -- If this message is a response to a question on a mailing list, please send follow up questi

Private behavior in roles

2005-11-17 Thread Ovid
t requires *and* what it provides. Are Perl 6 roles really going to blindly export everything they contain? This seems a serious mistake. I didn't see anything addressing this issue in http://www.perl.com/pub/a/2004/04/16/a12.html?page=12 Cheers, Ovid -- If this message is a respons

Re: testing Javascript applications ?

2005-11-28 Thread Ovid
0.21/index.html I've been using it and once you get it set up, it's fairly straight forward. You can see a sample in my journal: http://use.perl.org/~Ovid/journal/27229 Cheers, Ovid -- If this message is a response to a question on a mailing list, please send follow up questions to t

Re: testing Javascript applications ?

2005-11-28 Thread Ovid
--- Mark Stosberg <[EMAIL PROTECTED]> wrote: > > http://openjsan.org/doc/t/th/theory/Test/Simple/0.21/index.html > > > > I've been using it and once you get it set up, it's fairly straight > > forward. You can see a sample in my journal: >

Re: RT Permissions

2005-12-02 Thread Ovid
I've wondered about this myself. I've taken over Class::Trait but I can't take ownership of the RT requests. Cheers, Ovid --- "Christopher H. Laco" <[EMAIL PROTECTED]> wrote: > When one person takes over the module of another on CPAN via co-maint > a >

Re: relational data models and Perl 6

2005-12-16 Thread Ovid
strong typing, we may still have something good, but it won't be the relational model. Of course, all of this would put us on the doorstep of logic programming but, if I recall correctly, a decision was already made that Perl 6 wouldn't be delayed for its inclusion. A sad, but necessar

Re: relational data models and Perl 6

2005-12-16 Thread Ovid
. Otherwise, into > C-land you will go, my son! I'm not entirely sure, but I think we agree here. You have to have, at minimum, one selector for each new datatype if for no other reason than to cast a string to your new data type. Otherwise, your data types would only be constants because

Testing SQL and friends

2006-02-27 Thread Ovid
d. This would make this far more flexible than simply an SQL tester. Thoughts? I'm thinking a name like Test::ControlWhitespace. Also posted to http://use.perl.org/~Ovid/journal/28819 Cheers, Ovid -- If this message is a response to a question on a mailing list, please send follow up questions to

Re: Non-Perl TAP implementations

2006-04-17 Thread Ovid
e that into Test::Harness and allow folks to provide their own grammars and thus structure the output to better suit their needs. Of course, I would like a Ponie with that, too). Cheers, Ovid -- If this message is a response to a question on a mailing list, please send follow up questions to the

Re: Non-Perl TAP implementations

2006-04-17 Thread Ovid
o better suit their > needs. > > Patches less welcome! :-) You're hurtin' me, Andy, you're hurtin' me ;) Cheers, Ovid -- If this message is a response to a question on a mailing list, please send follow up questions to the list. Web Programming with Perl -- http://users.easystreet.com/ovid/cgi_course/

Re: Non-Perl TAP implementations

2006-04-17 Thread Ovid
y Mac where the STDERR and STDOUT don't line up. Cheers, Ovid -- If this message is a response to a question on a mailing list, please send follow up questions to the list. Web Programming with Perl -- http://users.easystreet.com/ovid/cgi_course/

Re: Non-Perl TAP implementations

2006-04-18 Thread Ovid
as a "Perl only" thing, I might (might) be inclined to argue the point, but even then it's questionable. As a language-independent tool, an API is silly and I'm a fool for shooting my keyboard off for thinking only about the implementation problems as opposed to its benefits. Ch

Re: Non-Perl TAP implementations

2006-04-18 Thread Ovid
so, TAP needs to be versioned and we need to figure out how to accomodate that. Also, how do we want to handle got/expected failure information in Java or C? There are pretty rich data structures we could put out there and YAML might help. That would also likely simplify a parser. Cheers, Ovid

Re: Non-Perl TAP implementations (and diag() problems)

2006-04-19 Thread Ovid
--- demerphq <[EMAIL PROTECTED]> wrote: > On 4/19/06, Ovid <[EMAIL PROTECTED]> wrote: > > to handle got/expected failure information in Java or C? There are > > pretty rich data structures we could put out there and YAML might > help. > > That would also l

Re: Non-Perl TAP implementations (and diag() problems)

2006-04-19 Thread Ovid
--- Ovid <[EMAIL PROTECTED]> wrote: > > If you mean you want pluck YAML test results from a noisy input > > stream I'd say youd probably be wrong. Naturally, I forgot to include the most compelling argument. The "noisy input stream" is noisy only because we'

Test numbers and description ambiguity

2006-04-19 Thread Ovid
umber, description)?; Cheers, Ovid -- If this message is a response to a question on a mailing list, please send follow up questions to the list. Web Programming with Perl -- http://users.easystreet.com/ovid/cgi_course/

Rought Outline of EBNF Grammar

2006-04-19 Thread Ovid
Based on what I've gleaned from http://search.cpan.org/~petdance/Test-Harness-2.56/lib/Test/Harness/TAP.pod#Diagnostics, here's a first pass at an EBNF grammar for TAP. Note that it's incomplete, but it should be a good start for folks to at least think about this. Cheers, Ovid

Re: Non-Perl TAP implementations (and diag() problems)

2006-04-20 Thread Ovid
ing more along the lines of ">" or "*" to make it more visually distinctive, but backward compatibility is a glorious thing. I don't mind "##". Anyone else? Cheers, Ovid -- If this message is a response to a question on a mailing list, please send follow up questions to the list. Web Programming with Perl -- http://users.easystreet.com/ovid/cgi_course/

Re: Non-Perl TAP implementations (and diag() problems)

2006-04-20 Thread Ovid
f knowing what the programmer and you *can't* handle diag correctly if you can't disambiguate it. This is another reason why writing automated tools for TAP is problematic. There's more stuff folks would like to do and we need these issues resolved to make those things happen. Ch

Re: Proposed kwalitee metric: consistent_newlines

2006-04-29 Thread Ovid
lines OR > exclusively Win32 newlines. Sounds like a good idea, but what about strings? You'd need to mask those out prior to the test, wouldn't you? And if they were multi-line strings, you'd need to mask 'em out with the right type of ending (unless PPI were being used).

Re: Simple Print/Say Question

2006-05-23 Thread Ovid
This seems to work for me: pugs -e 'say (1,2,3).join("|")' 1|2|3 Or even: pugs -e '(1,2,3).join("|").say' 1|2|3 Cheers, Ovid -- If this message is a response to a question on a mailing list, please send follow up questions to the l

Re: Simple Print/Say Question

2006-05-23 Thread Ovid
er version, I'd love to see it. Cheers, Ovid -- If this message is a response to a question on a mailing list, please send follow up questions to the list. Web Programming with Perl -- http://users.easystreet.com/ovid/cgi_course/-- my %buckets = ( 'w' => { '

Re: Simple Print/Say Question

2006-05-23 Thread Ovid
rg_for { for 0 .. $arg_for{'count'} -> $index { $arg_for{'array'}.push($index * $arg_for{'scale'}); } } Cheers, Ovid -- If this message is a response to a question on a mailing list, please send follow up questions to the list. Web Programming with Perl -- http://users.easystreet.com/ovid/cgi_course/

Re: Simple Print/Say Question

2006-05-23 Thread Ovid
- Original Message > From: Larry Wall <[EMAIL PROTECTED]> > > You should not need "my" on the right side of a ->. Also, you should > be able to write $arg_for for constant subscripts. Thanks! The revised script is below for those who are interested

Re: Simple Print/Say Question

2006-05-24 Thread Ovid
uot;int" and "array" stuff as comments right now, though I could be mistaken. Cheers, Ovid

Re: Simple Print/Say Question

2006-05-24 Thread Ovid
o work there? You're accessing an array, not a hash. > I assume all those temporaries that I cleaned out were there for > speed, in which case this will run slower, but they were too > unsightly to keep around. Yeah, that's why they were there. However, the ($x, $y, $z).sum > $target is a much more useful performance hack, so you could get rid of the temporaries. Cheers, Ovid

Re: 3 Good Reasons...

2006-05-24 Thread Ovid
designing and implementing Perl6 (gush, gush, gush). I was leaning away from Perl5 due to its limitations, but now I'm here to stay. I am supremely confident that Perl6 will be a hugely popular language simply based on its merits, not marketing. Cheers, Ovid

Re: 3 Good Reasons... (typo alert!)

2006-05-24 Thread Ovid
Sheesh. I type things too fast and then I see the horrifying typos I've made (blush) - Original Message From: Ovid <[EMAIL PROTECTED]> > do things that is hard to do in other languages. "do things that *are* hard to do in other languages" > Perl6 not onl

Re: Logic Programming for Perl6 (Was Re: 3 Good Reasons... (typo alert!))

2006-05-25 Thread Ovid
- Original Message From: David Romano <[EMAIL PROTECTED]> > > duplicate results and this is almost always wrong. (See > > http://use.perl.org/~Ovid/journal/28378 > > for an SQL example of this problem). > I re-read your journal entry and comments (I had re

Fw: Logic Programming for Perl6 (Was Re: 3 Good Reasons... (typo alert!))

2006-05-25 Thread Ovid
Larry pointed out that this topic is better suited for perl6-language instead of perl6-users, so I'm forwarding this along. Feel free to exercise your "delete" key. Cheers, Ovid -- If this message is a response to a question on a mailing list, please send follow up questi

Re: CPANTS is not a game.

2006-05-25 Thread Ovid
ee lines from Acme::Code::Police: $trick_that_naughty_cpants_thingy_into_thinking_I_use_strict = <<'Ha, ha!'; use strict; Ha, ha!Cheers, Ovid -- If this message is a response to a question on a mailing list, please send follow up questions to the list. Web Programming with Perl -- http://users.easystreet.com/ovid/cgi_course/

Re: Unintended consequences

2006-05-26 Thread Ovid
that also makes all her modules phone home > at install time. Huh? Can you post an example? The logical spot for having the module "phone home" would be in the Makefile.PL. I also glanced at some tests, but didn't see anything there, either. Cheers, Ovid -- If this message

Re: Introductions; P6 wiki

2006-05-27 Thread Ovid
On a related note, if anyone does want to build a P6 Wiki, you might consider building it on top of WWW::Kontent (http://search.cpan.org/dist/WWW-Kontent/), a Perl6 CMS (Content Management System) that BrentDax wrote. Cheers, Ovid -- If this message is a response to a question on a mailing

Re: Fw: Logic Programming for Perl6 (Was Re: 3 Good Reasons... (typo alert!))

2006-05-27 Thread Ovid
;t know how their monads work or if they would be applicable :) > There's some information about this in S05, with more info promised: > http://dev.perl.org/perl6/doc/design/syn/S05.html#Matching_against_non-strings Ooh, looks promising. In that scenario, is a hash viewed as an array

Re: CGI on 6

2006-05-28 Thread Ovid
ak for Audrey, but she was quite willing to hand out committer bits and I suspect she'd be happy to have more of the cookbook fleshed out. We need it very badly! Cheers, Ovid -- If this message is a response to a question on a mailing list, please send follow up questions to the list. We

Re: CGI on 6

2006-05-29 Thread Ovid
Michael, I assume this is just an attempt to learn Perl6 and not to write a serious CGI parser? Assuming it's the former and not the latter, I don't really have much to comment on, though there are a few things I would change. Cheers, Ovid -- If this message is a response to a que

Re: CGI on 6

2006-05-29 Thread Ovid
- Original Message From: Michael Mathews <[EMAIL PROTECTED]> On 30/05/06, Ovid <[EMAIL PROTECTED]> wrote: > > I assume this is just an attempt to learn Perl6 and not to write a serious > > CGI parser? > > Assuming it's the former and not the

Minimum modules for Production?

2006-05-29 Thread Ovid
can be hacked up on the fly. Cheers, Ovid -- If this message is a response to a question on a mailing list, please send follow up questions to the list. Web Programming with Perl -- http://users.easystreet.com/ovid/cgi_course/

Re: Minimum modules for Production?

2006-05-31 Thread Ovid
call having used GDBM_File. Perl6 without a robust HTML parser would be quite limited for me, though I'm sure one will be ready soon. Cheers, Ovid

Re: $1,000 prize for Perl 6 Wiki written in Perl 6

2006-06-01 Thread Ovid
come up with a solid set of contest rules, TPF can consider whether or not we can officially run the contest. It sounds like a nice idea, I just don't know what's involved. Cheers, Ovid -- If this message is a response to a question on a mailing list, please send follow up quest

Re: interesting behavior in use_ok()

2006-06-27 Thread Ovid
ad a use_ok test fail but I had so many intervening tests pass that this scrolled off the screen by the time I got down to my failing tests. It took me a long time of debugging and calling over other coworkers before someone spotted that the use_ok was failing. Cheers, Ovid -- If this message i

Re: Test::Harness wrangling

2006-06-29 Thread Ovid
ite. Cheers, Ovid

Re: Test::Harness wrangling

2006-06-29 Thread Ovid
# got: '3' # expected: '4' #> this is diag output That would be easy to parse, should be trivial to implement and, I suspect, be backwards compatible. Cheers, Ovid -- If this message is a response to a question on a mailing list, please send follow up qu

Re: Test::Harness wrangling

2006-06-29 Thread Ovid
ed to ensure that the rest of the behavior is unchanged). Cheers, Ovid

Re: Update from YAPC::NA

2006-06-29 Thread Ovid
as I don't recall hearing any feedback as to whether or not such a feature would be incorporated. And while we're at it, another "non-bug" but definitely useful feature out be for TAP output to have a version number, but that's another story ... Sorry for the line noise

TAP Grammar

2006-07-03 Thread Ovid
Hi all, I would still like to be in a position to write a grammar for TAP, but I've heard no answers to my questions. Should I assume that a formal grammar is not wanted/desired at this point? Cheers, Ovid -- If this message is a response to a question on a mailing list, please send f

Re: TAP Grammar

2006-07-03 Thread Ovid
r for it, but the grammar can easily produce some output which doesn't make sense. Thus, I'm stuck in the awkard position of needing fundamental issues resolved before I can proceed in a confident manner. Cheers, Ovid -- If this message is a response to a question on a mailing list, pleas

Re: TAP extension proposal: test groups

2006-07-03 Thread Ovid
tter would allow a simple test of the TAP version and allow the proper grammar to be loaded rather than use heuristics to guess what version is allowed. Cheers, Ovid

Re: TAP Grammar

2006-07-03 Thread Ovid
- Original Message > From: chromatic <[EMAIL PROTECTED]> > > On Monday 03 July 2006 09:12, Ovid wrote: > > I am tempted, but there are some problems with parsing TAP output as it > > currently stands. I can write a grammar for it, but the grammar can easily &g

Re: TAP Grammar

2006-07-03 Thread Ovid
all > > we need is for those officially supporting/maintaining TAP to say > > "make it so". > What community do you program for? Just do it, man. Get approval / > fix it later. Doing it now. Tougher than I thought! Due to some weird semantics involved, I've already jettisoned HOP::Lexer and have rolled my own :( Not sure when it will be done. Cheers, Ovid

Re: TAP extension proposal: test groups

2006-07-04 Thread Ovid
s merely a protocal and where it gets written to/read from should be irrelevant. Mandating that would only impose extra overhead. Cheers, Ovid

More on the TAP::Grammar

2006-07-04 Thread Ovid
arser = TAP::Parser->new({ newlines => 1, # add newlines to output version => $optional_version_number }); $parser->parse($tap); # croaks if it can't print $parser->plan; foreach my $line ( $parser->test_lines ) { print $line; } I'm sure there'

TAP::Parser 0.01 (major alpha!)

2006-07-04 Thread Ovid
ription; print $test->directive;# TODO or SKIP data } You can download it from http://users.easystreet.com/ovid/downloads/TAP-Parser-0.01.tar.gz It'd be awfully swell if you can feed it a bunch of TAP output so I can see what if fails on. Kibitzing is also encouraged, tho

Re: Proposal Suggestion - Test::Run [was Re: [Israel.pm] Fwd: Call for proposals -- Perl Foundation Grants]

2006-07-07 Thread Ovid
erl community with the most experience in a given area know what they're talking about. Maybe that's not the best approach, but sooner or later we have to trust *someone's* judgment. Cheers, Ovid -- If this message is a response to a question on a mailing list, please send follow up questions to the list. Web Programming with Perl -- http://users.easystreet.com/ovid/cgi_course/

Re: More on the TAP::Grammar

2006-07-07 Thread Ovid
- Original Message From: Michael G Schwern <[EMAIL PROTECTED]> On 7/4/06, Ovid <[EMAIL PROTECTED]> wrote: > > Because we're discarding anything which does not look like a plan or a test > > line > > Don't discard them, just pass them thro

Re: More on the TAP::Grammar

2006-07-07 Thread Ovid
- Original Message From: Ovid <[EMAIL PROTECTED]> > Also, since I had not seen the TAP::Harness work before, I didn't > know that a separate parser was already being planned. My only > motivation for writing TAP::Parser was my assumption that it was > need

Re: [Slightly OT] Understanding Software Licences

2006-07-07 Thread Ovid
u think how much time and effort was put into researching and preparing the Artistic 2 license and it got a fair amount of pushback on it, why on earth would anyone decide to switch to a different license just because you want them to? It ain't gonna happen. Cheers, Ovid -- If this mess

Re: TAP Namespace Nonproliferation Treaty

2006-07-08 Thread Ovid
t know if that would bug folks, though. Cheers, Ovid -- If this message is a response to a question on a mailing list, please send follow up questions to the list. Web Programming with Perl -- http://users.easystreet.com/ovid/cgi_course/

Re: TAP Namespace Nonproliferation Treaty

2006-07-08 Thread Ovid
- Original Message > From: Nik Clayton <[EMAIL PROTECTED]> > Ovid wrote: > > I'm perfectly comfortable with this idea, but what I'm trying to figure > > out then, is the namespace for my parser. It's a TAP parser, after all. > > Any sugge

Doc error in TAP.pm?

2006-07-08 Thread Ovid
s of test behavior, the shouldn't that be the following? Any text after the test number but before *an unescaped* # is the description of the test point. Example: TAPx-Parser $ perl -MTest::More=no_plan -e'ok 1, "# TODO annoy perl-qa"' ok 1 - \# TODO annoy

Bail out! questions

2006-07-08 Thread Ovid
if there's additional output and spit out a different warning? Should it just treat it as a "Bail out!" line and continue parsing like normal and let the code using the parser handle that? if ( $test->is_bail_out ) { ... } Cheers, Ovid -- If this message is a respon

TAPx::Parser 0.02

2006-07-08 Thread Ovid
Hi all, The next version of my TAP parser is at http://users.easystreet.com/ovid/downloads/TAPx-Parser-0.02.tar.gz It's still not complete, but it's a lot further along than it was. Some notes from Changes: 0.028 June, 2006 - Moved some lexer responsibility to

Re: Doc error in TAP.pm?

2006-07-09 Thread Ovid
nsensitive to maintain backwards compatibility with Test::Harness, why wouldn't we keep the escaping for the same reason? Cheers, Ovid

Re: Bail out! questions

2006-07-09 Thread Ovid
ing _two_ > "Bail out!" lines.) I think I will make this configurable so that you can continue after a "Bail out!", if explicitly requested, though if someone really meant to bail out, the rest of the data would be questionable, though if we're just checking TAP for validity, I can see your point. Cheers, Ovid

Re: TAPx::Parser 0.02

2006-07-09 Thread Ovid
- Original Message From: Ian Langworth <[EMAIL PROTECTED]> > This is cool, Ovid! I think you're definitely on the right track. Thanks! > Thoughts: > > - I'd like an option to automatically s{ \A \s* - \s+ }{} all test > descriptions. I bet a lot of

TAPx::Parser roadmap

2006-07-09 Thread Ovid
! # SKIP should never be "not ok"') - VMS 'not' and 'ok' on separate lines? Currently the lexer cannot handle this. Should it? Anything else? Cheers, Ovid -- If this message is a response to a question on a mailing list, please send follow up questions to the list. Web Programming with Perl -- http://users.easystreet.com/ovid/cgi_course/

Re: Anyone experiencing problems with rt.cpan.org?

2006-07-09 Thread Ovid
eport with [EMAIL PROTECTED] and Robert had to diddle the database to get me sorted. -- If this message is a response to a question on a mailing list, please send follow up questions to the list. Web Programming with Perl -- http://users.easystreet.com/ovid/cgi_course/

Re: TAP diagnostic syntax proposal

2006-07-10 Thread Ovid
way, is "not ok" and a skip directive illegal? I assume so and it should be marked as a parse failure) Cheers, Ovid -- If this message is a response to a question on a mailing list, please send follow up questions to the list. Web Programming with Perl -- http://users.easystreet.com/ovid/cgi_course/

Re: TAP diagnostic syntax proposal

2006-07-10 Thread Ovid
t;? I like "pitched" and "caught". ... silence ... *cough* Cheers, Ovid (for Larry's sake, no I'm not serious!) -- If this message is a response to a question on a mailing list, please send follow up questions to the list. Web Programming with Perl -- http://users.easystreet.com/ovid/cgi_course/

Re: TAP diagnostic syntax proposal

2006-07-11 Thread Ovid
inalize; foreach my $result ( $parser->results ) { if ( $result->is_test && $result->failed ) { my_parser( $result->diagnostics ); # whee! We don't care what it does } else { ... } } Cheers, Ovid -- If this message is a response to a question on a mailing list, please send follow up questions to the list. Web Programming with Perl -- http://users.easystreet.com/ovid/cgi_course/

Re: TAP diagnostic syntax proposal

2006-07-11 Thread Ovid
ide from the fact that many languages are already using the TAP protocol and we'd create something they *don't* use, what happens when my 4,000 test lines all of a sudden become 16,000 test lines because the format has been changed? *falls over dead* Hugs, Ovid

Re: TAP diagnostic syntax proposal

2006-07-11 Thread Ovid
ough it parses the test results directly and then outputs TAP (if I recall correctly). Cheers, Ovid -- If this message is a response to a question on a mailing list, please send follow up questions to the list. Web Programming with Perl -- http://users.easystreet.com/ovid/cgi_course/

Fw: TAP diagnostic syntax proposal

2006-07-11 Thread Ovid
Aargh! It gets annoying that the reply goes directly to the author rather than the list. -- If this message is a response to a question on a mailing list, please send follow up questions to the list. Web Programming with Perl -- http://users.easystreet.com/ovid/cgi_course/ - Forwarded

Fixing SKIP:

2006-07-15 Thread Ovid
t: 1..1 # No tests run! I don't particularly like that this is a silent failure, but I'm not sure of a robust way to fix that. In any event, I reread the docs a couple of times before I realized I was being stupid. That suggests to me that this little nit could be improved. Ch

Fw: Fixing SKIP:

2006-07-15 Thread Ovid
- Forwarded Message From: Ovid <[EMAIL PROTECTED]> > I have returned to working on the tap parser and stumbled across this > irritation: > > #!/usr/bin/perl > > use Test::More tests => 1; > SKIP: { >skip "I'm lazy and don't wanna r

Re: Fixing SKIP:

2006-07-15 Thread Ovid
dated to indicate that the skip message must not consist solely of a positive integer, then we're OK. Will that break anything out there? Cheers, Ovid -- If this message is a response to a question on a mailing list, please send follow up questions to the list. Web Program

Re: Fw: Fixing SKIP:

2006-07-15 Thread Ovid
accept a test description? can_ok cannot accept a description because it accepts a list. isa_ok can *sort* of accept a description which is why I often do this: isa_ok $object, 'Foo::Bar', '... and the object'; And the output reads: ok 7 - ... and the object isa Foo::

use Tests; # ?

2006-07-15 Thread Ovid
, $description; skip $number, $description; Just doing this: use Tests; Would import the Test::More equivalents. Thoughts? Cheers, Ovid -- If this message is a response to a question on a mailing list, please send follow up questions to the list. Web Programming with Perl -- http

Re: use Tests; # ?

2006-07-17 Thread Ovid
- Original Message From: Michael G Schwern On 7/15/06, Ovid wrote: > > Just a thought: > > > > use Tests qw/ > > Exception > > Differences > > /; > > > > Have it import those modules and check for sub conflicts.

Re: Lessons from the test function parameter placement quibbles?

2006-07-17 Thread Ovid
ocus on the ease-of-use combined with the flexibility we need. Using a hashref to enforce named parameters gives us flexibility, but certainly not ease-of-use. Cheers, Ovid -- If this message is a response to a question on a mailing list, please send follow up questions to the

Re: use Tests; # ?

2006-07-17 Thread Ovid
focusing on issues like this is a good thing. For example, what could be done in TAP::Harness to improve the reporting on line numbers? That alone would be a nice benefit for folks. Cheers, Ovid -- If this message is a response to a question on a mailing list, please send fol

TAPx::Parser 0.03

2006-07-17 Thread Ovid
Hi all, OK, so I haven't gotten to my 0.10 roadmap yet, but the next version of my TAP parser is at http://users.easystreet.com/ovid/downloads/TAPx-Parser-0.03.tar.gz A variety of the changes listed below are precursors to allowing streams to be handled correctly. Feedback is highly s

Tap Streams

2006-07-18 Thread Ovid
nks have to be "complete". In other words, if I have a "got" in one chunk, having the "expected" in the next chunk makes it a bit more difficult to handle (though not insurmountable). However, depending upon how buffering is handled, I could see this condition aris

Runtime Role Issues

2006-10-10 Thread Ovid
TailChasing | Scratch; Should that be the following? $fido does Sentry & Tricks & TailChasing & Scratch; Cheers, Ovid -- Buy the book -- http://www.oreilly.com/catalog/perlhks/ Perl and CGI -- http://users.easystreet.com/ovid/cgi_course/

Runtime role issues

2006-10-11 Thread Ovid
rl6/doc/design/syn/S12.html says: You can also mixin a precomposed set of roles: $fido does Sentry | Tricks | TailChasing | Scratch; Should that be the following? $fido does Sentry & Tricks & TailChasing & Scratch; Cheers, Ovid -- Buy the book -- http://w

Re: Runtime role issues

2006-10-11 Thread Ovid
ork, instances of objects in the M, V, or C portions might want to exhibit different behaviors, depending upon what I'm doing with them, but I don't necessarily want those behaviors to bleed over to the other layers of my application. Whether or not this is a clean way of looking at the p

Re: Runtime Role Issues

2006-10-11 Thread Ovid
ll (see Moose::Meta::Class for more about these > APIs): > > ^Dog.add_role(^Catlike); That's more of what I was thinking, but where is this documented? I can't find it in http://dev.perl.org/perl6/doc/design/syn/S12.html. I see it in the Moose docs, but is this in Perl 6? I

Error running Pugs tests

2006-12-12 Thread Ovid
nge. Can anyone else reproduce this? If not, I can dig into my system and see what's up. Cheers, Ovid -- Buy the book -- http://www.oreilly.com/catalog/perlhks/ Perl and CGI -- http://users.easystreet.com/ovid/cgi_course/

Re: Error running Pugs tests

2006-12-12 Thread Ovid
--- Gaal Yahas <[EMAIL PROTECTED]> wrote: > On Tue, Dec 12, 2006 at 02:14:42AM -0800, Ovid wrote: > > pugs $ pugs t/general/basic.t > > pugs: user error (*** > > Unexpected "Str" > > expecting "\\", ":", "*&qu

Introspection and list question

2006-12-12 Thread Ovid
, it's flattening nested lists and I'm embarrassed to admit that I can't figure this out in Perl6. Thoughts? I've been reading synopses and grepping through Pugs, but to no avail. Cheers, Ovid -- Buy the book -- http://www.oreilly.com/catalog/perlhks/ Perl and CGI -- http://users.easystreet.com/ovid/cgi_course/

Strange error message with anon subroutine

2006-12-13 Thread Ovid
ugs line 103, column 13-22 Take out the returns, and it works fine. Can someone tell me what I'm missing? Is this a bug. Also, I noticed I accidentally left off the final semi-colon on the do block. It ran anyway and that surprised me. Cleaner ways of writing that code are welcome, too.

99 Problems in Perl6

2006-12-15 Thread Ovid
would like. The link to my sample Perl6 code and to the original 99 problems is at http://perlmonks.org/?node_id=590113 Cheers, Ovid -- Buy the book -- http://www.oreilly.com/catalog/perlhks/ Perl and CGI -- http://users.easystreet.com/ovid/cgi_course/

Unwanted scalar references

2006-12-17 Thread Ovid
ot;, [1, "c"] ).perl.say; Oddly, using the postfix ++ gives me the error message I expect: *** Can't modify constant item: VRef at 99.pugs line 215, column 18-69 99.pugs line 215, column 18-69 Cheers, Ovid -- Buy the book -- http://www.oreilly.com/catalog/perlhks/ Perl and CGI -- http://users.easystreet.com/ovid/cgi_course/

take: bug or feature?

2006-12-18 Thread Ovid
omething break? If so, I'll add a test. Otherwise, what's wrong with this code? Also, I've been searching the docs for the exact syntax of 'gather/take' and I can't find it. Pointers would be great. Pugs Version: 6.2.13 (r14911) Cheers, Ovid -- Buy the book -- http://w

take: bug or feature?

2006-12-18 Thread Ovid
omething break? If so, I'll add a test. Otherwise, what's wrong with this code? Also, I've been searching the docs for the exact syntax of 'gather/take' and I can't find it. Pointers would be great. Pugs Version: 6.2.13 (r14911) Cheers, Ovid -- Buy the book -- http://w

Re: take: bug or feature?

2006-12-18 Thread Ovid
,), (3,), (4,), (5,), (6,), (7,), (8,), (9,), (10,)) > > /s It looks like there's a bug in gather/take and luqui is working on it now (from #perl6). Cheers, Ovid -- Buy the book -- http://www.oreilly.com/catalog/perlhks/ Perl and CGI -- http://users.easystreet.com/ovid/cgi_course/

Junctions as arguments (Pugs bug)

2006-12-19 Thread Ovid
27;ll happily commit tests, but what is the expected behavior of my first code snippet? (I see now that other junction tests use ok() instead) Cheers, Ovid -- Buy the book -- http://www.oreilly.com/catalog/perlhks/ Perl and CGI -- http://users.easystreet.com/ovid/cgi_course/

  1   2   3   4   >