Set binmode on T::B's File Handles?

2006-01-08 Thread David Wheeler
Fellow QAers, This script: use strict; BEGIN { binmode STDERR, ':utf8' } use Test::More tests => 1; diag "\x{201c}"; ok 1; Outputs a warning when it runs: Wide character in print at /usr/local/lib/perl5/5.8.7/Test/ Builder.pm line 1199. This is annoying. I had thought that I cou

Re: What about Test::Unit?

2006-01-08 Thread David Wheeler
On Jan 8, 2006, at 9:23 PM, Matisse Enzer wrote: I'm working on getting a large amount of "legacy code" under test harnesses, and I'm wondering why Test::Unit isn't more widely used. Andy Lester suggested I pose the question on this list. Do people think Test::Unit sucks? Simply not very we

Re: Set binmode on T::B's File Handles?

2006-01-09 Thread David Wheeler
On Jan 9, 2006, at 2:18 AM, Adrian Howard wrote: Y'want Test::Builder's failure_output(), e.g.: use Test::More tests => 1; binmode Test::More->builder->failure_output, ':utf8'; diag "\x{201c}"; ok 1; Ah, right, error_output, too. Thanks! David

Re: Test::Builder feature request...

2006-02-08 Thread David Wheeler
On Feb 8, 2006, at 11:41, Geoffrey Young wrote: so, I guess my question is whether the plan->is linkage can be broken in Test::Builder/Test::Harness/wherever and still keep the bookkeeping in tact so that the library behaves the same way for the bulk case. or maybe at least provide some optio

Re: Test::Builder feature request...

2006-02-08 Thread David Wheeler
On Feb 8, 2006, at 12:41, Geoffrey Young wrote: with your suggestion I'm almost there: 1..1 ok 1 - this was a passing test # No tests run! What parts do you want left out? Best, David

Re: Warnings during test

2006-03-04 Thread David Wheeler
On Mar 4, 2006, at 05:58, Gabor Szabo wrote: When installing a module ( in this case Sub-Uplevel-0.09 on 5.8.8) using CPANPLUS I saw many warnings passing by but as all the tests were successful the report to the CPAN Testers was sent as PASS. it would be useful to capture warnings printed on t

Re: Surprising use_ok false positive

2006-03-05 Thread David Wheeler
On Mar 5, 2006, at 13:52, Chris Dolan wrote: Advice? While this example is contrived, the "eval { require ... }" idiom is used often in the wild, so this is not a wholly unrealistic scenario. Of course it should be eval { require Bar; 1; } or die $@; But I agree that it seems like if t

Re: Non-Perl TAP implementations

2006-04-16 Thread David Wheeler
On Apr 16, 2006, at 20:08, Andy Lester wrote: I'm adding a section to Test::Harness::TAP on non-Perl TAP. http://svn.perl.org/modules/Test-Harness/trunk/lib/Test/Harness/ TAP.pod If you know of one, please send me some text to add. Test.Simple—JavaScript. It looks and acts just like tap, a

Re: Non-Perl TAP implementations

2006-04-17 Thread David Wheeler
On Apr 17, 2006, at 06:03, Andy Lester wrote: Can you please give me a short couple of sentences on it for someone who has no idea how/why you'd use TAP outside of Perl? It's a direct port of Test::Builder, ::Simple, and ::More, along with a harness for showing test results in a browser. Wh

Re: Non-Perl TAP implementations

2006-04-19 Thread David Wheeler
On Apr 19, 2006, at 12:14, Fergal Daly wrote: One other reason (that I didn't see mentioned) is that objects imply that the harness and tests are in the same process which means that the tests can corrupt the harness and that the harness can fail to report if the test process dies, Well, the h

Re: Test::Harness wrangling

2006-06-29 Thread David Wheeler
On Jun 28, 2006, at 21:13, Andy Lester wrote: Any bugs that we especially need to work on? This might be Test::Builder, but I've seen many times on my Mac where STDERR and STDOUT output is out of sync. For example, info about why a test failed can be miles from the line where the "no ok" a

Re: Test::Harness wrangling

2006-06-29 Thread David Wheeler
On Jun 29, 2006, at 07:26, Michael Peters wrote: This is a general problem with the way some of the testing modules work. Only because they all use Test::Builder's output methods. This doesn't resolve the problem of non-test modules emitting things to STDERR that could be useful when track

Re: TAP diagnostic syntax proposal

2006-07-10 Thread David Wheeler
On Jul 10, 2006, at 11:34, chromatic wrote: "got" still sucks. Is there any chance to change it to "received"? It's not a gift package delivered by FedEx. What sucks about "got"? Best, David

Re: TAP diagnostic syntax proposal

2006-07-10 Thread David Wheeler
On Jul 10, 2006, at 11:59, chromatic wrote: It's the grammatical equivalent of tucking your shirt tail into your underwear before trying to get a date at your family reunion. That's the best place to *get* a date! D

Re: TAP diagnostic syntax proposal

2006-07-11 Thread David Wheeler
On Jul 11, 2006, at 09:21, Ovid wrote: Java programmers typically use jUnit. C programmers have libtap available. PHP tests often use TAP (don't know the name) and Javascript has Test.Simple, though it parses the test results directly and then outputs TAP (if I recall correctly). It bot

Re: fetching module version from the command line

2006-07-12 Thread David Wheeler
On Jul 12, 2006, at 03:41, Gabor Szabo wrote: perl -MModule -e'print $Module::VERSION' I have this alias set up: function pv () { perl -M$1 -le "print $1->VERSION"; } I think that calling ->VERSION is more correct. Best, David

Re: fetching module version from the command line

2006-07-13 Thread David Wheeler
On Jul 13, 2006, at 05:56, Fergal Daly wrote: That's funny, it looks like I did put some code in to disable the END block if it's "require"d rather than "use"d. Turns out I did this to make MakeMaker happy, so MakeMaker does actually do a full require, Well, IIRC, both MakeMaker and Module::Bu

Re: Fixing SKIP:

2006-07-15 Thread David Wheeler
On Jul 15, 2006, at 10:52, Ovid wrote: That's incorrect, even though saying "skip X tests" reads naturally to me. Since "skip this many for tis reason" is how I mentally think of SKIP: blocks, I keep writing them like that, even though it's wrong. As mentioned, it fails silently. Perha

Re: Fixing SKIP:

2006-07-15 Thread David Wheeler
On Jul 15, 2006, at 11:35, Ovid wrote: That was my initial thought, but there's nothing explicitly wrong with having a numeric skip message. No, I said make sure that the *second* argument is numeric. It must always indicate the number of tests to be skipped. Best, David

Re: Half measures all round

2002-06-04 Thread David Wheeler
l 6, I will be motivated to port them. Plenty of folks are still dedicated to Perl 5, and it will likely to continue moving forward for some time -- it may never die. And I think that's true regardless of whether Perl 6 supports Perl 5 or not. So it's okay by me to dump it. Lots of

Re: 6PAN (was: Half measures all round)

2002-06-04 Thread David Wheeler
forms they pass on and what platforms they don't at the top of the download page would be good enough. But the tests have got to be there. Regard, David -- David Wheeler AIM: dwTheory [EMAIL PROTECTED]

Re: 6PAN (was: Half measures all round)

2002-06-04 Thread David Wheeler
still want to upload this module? That'll stop the vast majority of offenders, and those who upload anyway will be more likely to have documented changes. David -- David Wheeler AIM: dwTheory [EMAIL PROTECTED]

Re: 6PAN (was: Half measures all round)

2002-06-04 Thread David Wheeler
27;Reilly wants to fund me I'd be happy to do it. :-) On what platform(s)? Who's going to pay for the test bed for every possible combination of perl version, OS, various libraries, etc., etc.? I think that *requiring* that all tests pass is unrealistic. Regards, David

Re: Half measures all round

2002-06-04 Thread David Wheeler
On 6/4/02 4:08 PM, "Brent Dax" <[EMAIL PROTECTED]> claimed: > Why bother? You've already put P::RD and T::B effectively in the core! > ;^) And Switch. And Next? And Q::S? Larry, have you decided on that one yet? :-) Regards, David -- David Wheeler

Re: Apoc 5 questions/comments

2002-06-07 Thread David Wheeler
for that matter) have some magical array that holds all the matches from the last match? e.g., ($1, $2, $3, ...)? Regards, David -- David Wheeler AIM: dwTheory [EMAIL PROTECTED] ICQ: 15726394 http://david.wheeler

Re: Apoc 5 questions/comments

2002-06-07 Thread David Wheeler
array. Perl 5 is another matter. > I guess the golfing community would appreciate a mini-exegsis for what > Perl 6 can do for them :) [hint, hint] I rather expect that whatever Perl 6 does for golfers is a side-effect of what Perl 6 is doing for programmers who

Re: Apoc 5 questions/comments

2002-06-07 Thread David Wheeler
On 6/7/02 11:21 AM, "David Wheeler" <[EMAIL PROTECTED]> claimed: > Not to mention kinda useless. I was hoping for a magic array that would hold > the actual *matches*, rather than pointers to their character positions. And it appears to be C<@$0>. Duh. Sorry

Re: perl6-language@perl.org

2002-08-01 Thread David Wheeler
quently do stuff like this: my %hash; for qw(one two three) { %hash{$_} = 1; # $_ should *not* == %hash here! } Regards, David -- David Wheeler AIM: dwTheory [EMAIL PROTECTED] ICQ: 15726394 http://david.wheeler.net/

Re: auto deserialization

2002-08-28 Thread David Wheeler
t the even simpler syntax suggested earlier in this thread) is this: my $date = Date.new('June 25, 2002'); Would automatically type C<$date> as a Date object. Thoughts? Regards, David -- David Wheeler AIM: dwTheory [EMAIL PROTECTED]

Re: auto deserialization

2002-08-28 Thread David Wheeler
b = { ... }; And if so, does it matter? > Whatever. My coffee stream hasn't yet suppressed my stream of > consciousness. I think we're all the better for it! :-) Regards, David -- David Wheeler AIM: dwTheory [EMAIL PROTECTED]

Re: auto deserialization

2002-08-31 Thread David Wheeler
haps there could be a way to mark a variable as statically typed at compile time, and have the compiler apply the static typing so that I don't have to do all that extra typing. Regards, David -- David Wheeler AIM: dwTheory [EMAIL PR

Re: auto deserialization

2002-09-01 Thread David Wheeler
gh; Oh, that's nice. As long as one is careful about not creating conflicting class names... Regards, David -- David Wheeler AIM: dwTheory [EMAIL PROTECTED] ICQ: 15726394 http://david.wheeler.net/

Re: auto deserialization

2002-09-02 Thread David Wheeler
On Monday, September 2, 2002, at 03:44 AM, Damian Conway wrote: >> my Date $date .= new('Jun 25, 20002'); > > H. That's a very interesting idea. > I like it. Hallelujah! I like it, too! It's only one character more than my original suggestion!

Re: auto deserialization

2002-09-02 Thread David Wheeler
On Monday, September 2, 2002, at 10:00 AM, Damian Conway wrote: > No, I never said (nor intended to imply) that. Note that I carefully > avoided the > word "alias" in my description of this technique. ;-) That was my doing. Sorry folks. David

Multimethod Dispatch

2002-09-03 Thread David Wheeler
On Tuesday, September 3, 2002, at 05:08 PM, Dan Sugalski wrote: > We call that concept "multimethod dispatch". That's what you're asking > for. Dan, can you explain what "multimethod dispatch" is? Thanks! David -- David Wheeler

Re: Multimethod Dispatch

2002-09-03 Thread David Wheeler
their > parameter signature. Ah, yes, the same thing exists in Java. I remember, now. Thanks Dan, David -- David Wheeler AIM: dwTheory [EMAIL PROTECTED] ICQ: 15726394 http://david.wheeler.net/

Re: Multimethod Dispatch

2002-09-04 Thread David Wheeler
ading? And will Perl 6 do it at compile-time or at run-time? Thanks, David -- David Wheeler AIM: dwTheory [EMAIL PROTECTED] ICQ: 15726394 http://david.wheeler.net/ Ya

Re: the getting started guide

2002-10-09 Thread David Wheeler
orry Piers, couldn't resist!) David -- David Wheeler AIM: dwTheory [EMAIL PROTECTED] ICQ: 15726394 http://david.wheeler.net/ Yahoo!: dew7e Jabber: [EMAIL PROTECTED]

Re: perl6 operator precedence table

2002-10-18 Thread David Wheeler
would have an easier time explaining #4 to someone Yes, except that &bit is a subroutine reference, IIRC, not an operator. That's why it makes more sense to put the punctuation character at the end of the operator name. Regards, David -- David Wheeler

Re: perl6 operator precedence table

2002-10-18 Thread David Wheeler
On Wednesday, October 16, 2002, at 04:55 PM, Smylers wrote: How about keeping caret for xor? $a ~^ $b # bitwise xor $a ^^ $b # logical xor Hm, the "seagull operator"? David -- David Wheeler AIM: dwTheory [EMAIL

Re: perl6 operator precedence table

2002-10-24 Thread David Wheeler
inate whitespace to be the concatenation operator! my $foo = $bar $bat; ;-) David -- David Wheeler AIM: dwTheory [EMAIL PROTECTED] ICQ: 15726394 http://david.wheeler.net/ Yahoo!:

Re: perl6 operator precedence table

2002-10-24 Thread David Wheeler
am! :-D David -- David Wheeler AIM: dwTheory [EMAIL PROTECTED] ICQ: 15726394 http://david.wheeler.net/ Yahoo!: dew7e Jabber: [EMAIL PROTECTED]

Re: Wh<[ie]>ther Infix Superposition ops

2002-10-29 Thread David Wheeler
s suddenly quieted down after this message. So I would look favorably on finding a replacement for "superposition". Well, I like "set operators," too, but what's the grammatical term for the above "logically entangled list of nouns"? Regards, David --

Re: [RFC] Perl6 Operator List, Take 5

2002-10-30 Thread David Wheeler
be a PITA...even though I *love* the idea of using these characters, might it be better to abandon them for now? Regards, David PS: What do they look like in this reply? -- David Wheeler AIM: dwTheory [EMAIL PROTECTED] ICQ: 157

Re: [RFC] Perl6 Operator List, Take 5

2002-10-30 Thread David Wheeler
arry I see ?'s And I didn't see them in Austin's message, but I see them in yours. Your mailer did the right thing, it looks like. David -- David Wheeler AIM: dwTheory [EMAIL PROTECTED] ICQ: 15726394 htt

Re: [RFC] Perl6 Operator List, Take 5

2002-10-30 Thread David Wheeler
s are: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Which is correct. But let me ask you -- how did you input those characters? David -- David Wheeler AIM: dwTheory [EMAIL PROT

Re: Wh<[ie]>ther Infix Superposition ops

2002-10-30 Thread David Wheeler
On Wednesday, October 30, 2002, at 07:18 AM, Jonathan Scott Duff wrote: The only thing this inspires in my brain is Schoolhouse Rock flashbacks. o/~ Conjuction Junction, what's your function? o/~ Heh. That's what I heard, too. David -- David Wheeler

Re: [RFC] Perl6 Operator List, Take 5

2002-10-30 Thread David Wheeler
t's probably UTF-8 that Perl 6 source code is written in, I think that you and I might be better off using a smarter mailer. David -- David Wheeler AIM: dwTheory [EMAIL PROTECTED] ICQ: 15726394 http://dav

Re: [RFC] Perl6 Operator List, Take 5

2002-10-31 Thread David Wheeler
On Wednesday, October 30, 2002, at 01:52 PM, Michael Lazzaro wrote: Applications/Utilities/"Key Caps" (Again, OSX) which shows you where they all are. The «» quotes, for example, are option-\ and shift-option-\ Oh, well, I guess those aren't *too* far out of the way...

Re: Perl6 Operator (REMAINING ISSUES)

2002-10-31 Thread David Wheeler
better analogy than that, quantumly speaking? Plus, it turns out not to be at all hard to type on Mac OS X. ;-) Regards, David -- David Wheeler AIM: dwTheory [EMAIL PROTECTED] ICQ: 15726394 http://david.w

Re: Primitive Boolean type?

2002-10-31 Thread David Wheeler
) can be undef. HTH, David -- David Wheeler AIM: dwTheory [EMAIL PROTECTED] ICQ: 15726394 http://david.wheeler.net/ Yahoo!: dew7e Jabber: [EMAIL PROTECTED]

Re: Primitive Boolean type?

2002-11-01 Thread David Wheeler
what's the boolean type in Perl?" I'd rather answer "bit" than "Perl doesn't have one", if for no other reason than the latter answer will completely freak them out. :-) How do you answer that question when it's asked of Perl 5? David -- David Wheeler

Re: Primitive Boolean type?

2002-11-01 Thread David Wheeler
citly introduced true and false into the language, and have therefore destroyed the utility of context: my boolean $bool = 0; # False. my $foo = ''; # False context. if ($foo eq $bool) { # Oops! } Regards, David -- David Wheeler

Re: [RFC] Perl Operator List, TAKE 6

2002-11-01 Thread David Wheeler
which case it might be: `<>` - synonym for «op» `>>op<<` - synonym for »op« Regards, David -- David Wheeler AIM: dwTheory [EMAIL PROTECTED] ICQ: 15726394 http://david.wheele

Re: UTF-8 and Unicode FAQ, demos

2002-11-02 Thread David Wheeler
. Regards, David -- David Wheeler AIM: dwTheory [EMAIL PROTECTED] ICQ: 15726394 http://david.wheeler.net/ Yahoo!: dew7e Jabber: [EMAIL PROTECTED]

Re: UTF-8 and Unicode FAQ, demos

2002-11-02 Thread David Wheeler
don't see much of an argument there. That a discussion leads to discussions on other mail lists is not a reason not to use Unicode operators. Or so it seems to me. Regards, David -- David Wheeler AIM: dwTheory [EMAIL PROT

Unicode Checker

2002-11-03 Thread David Wheeler
For all you Mac OS X fans out there: http://www.earthlingsoft.net/UnicodeChecker/ Regards, David -- David Wheeler AIM: dwTheory [EMAIL PROTECTED] ICQ: 15726394 http://david.wheeler.net/ Yahoo!: dew7e

Re: Project Start: Section 1

2002-11-11 Thread David Wheeler
ts, nor the P6C compiler tests, nor the P6C regex tests, because substitution isn't implemented yet. With all do respect, this is what TODO tests are for. Regards, David -- David Wheeler AIM: dwTheory [EMAIL PROTECTED]

Re: HOWTO: Writing Perl6 Tests (was: Project Start: Section 1)

2002-11-11 Thread David Wheeler
a pointer to some existing Perl 6 tests that they can model off of. Do any exist yet? Regards, David -- David Wheeler AIM: dwTheory [EMAIL PROTECTED] ICQ: 15726394 http://david.wheeler.net/ Yah

Re: Some basic string tests.

2002-11-12 Thread David Wheeler
local $TODO = "Not yet implemented"; ok( foo(), $test_name ); is( foo(42), 23, $test_name ); }; perldoc Test::More for more information. Regards, David -- David Wheeler AIM: dwThe

Re: Some basic string tests.

2002-11-15 Thread David Wheeler
at it is, in fact a TODO block. Regards, David -- David Wheeler AIM: dwTheory [EMAIL PROTECTED] ICQ: 15726394 http://david.wheeler.net/ Yahoo!: dew7e Jabber: [EMAIL PROTECTED]

Re: More junctions

2002-11-16 Thread David Wheeler
ally hope that, stylistically, we'll more often see code like this: if $damian | $larry | $dan == $hurt {...} # i.e. any of them hurt if $damian & $larry & $dan == $hurt {...} # all hurt Regards, David -- David Wheeler AIM: dwTheory [EM

Re: String concatentation operator

2002-11-18 Thread David Wheeler
f power, I guess. Regards, David -- David Wheeler AIM: dwTheory [EMAIL PROTECTED] ICQ: 15726394 http://david.wheeler.net/ Yahoo!: dew7e Jabber: [EMAIL PROTECTED]

Re: Continuations elified

2002-11-18 Thread David Wheeler
while {...} # I'm afraid to ask! Best, David -- David Wheeler AIM: dwTheory [EMAIL PROTECTED] ICQ: 15726394 http://david.wheeler.net/ Yahoo!: dew7e Jabber: [EMAIL PROTECTED]

Re: Continuations elified

2002-11-18 Thread David Wheeler
o $_ and the implicit definedness check is yet to be decided. That's a scalar context? I assumed it was list context from your previous post: In a list context: <$fh> # Calls $fh.each At any rate, I hope that it's bound to $_ -- nice conversion from Perl 5's behavio

Re: Continuations elified

2002-11-18 Thread David Wheeler
On Monday, November 18, 2002, at 08:17 PM, Damian Conway wrote: Sure. C always evaluates its condition in a scalar context. Oh, duh. Thanks. David -- David Wheeler AIM: dwTheory [EMAIL PROTECTED] ICQ: 15726394 http

Re: Continuations

2002-11-18 Thread David Wheeler
On Monday, November 18, 2002, at 08:19 PM, Damian Conway wrote: (B (B>> What was the final syntax for vector ops? (B>> @a $B"c(B+$B"d(B @b (B>> @a $B"d(B+$B"c(B @b (B> (B> The latter (this week, at least ;-). (B (BThis reminds me: I though of another set of bracing characte

ANN: JavaScript Test.Simple 0.10

2005-06-23 Thread David Wheeler
I’m pleased to announce the first beta release of Test.Simple, the port of Test::Builder, Test::Simple, Test::More and (drum roll please!) Test::Harness to JavaScript. Get details here: http://www.justatheory.com/computers/programming/javascript/ test_simple-0.10.html See Test.Harness.Br

Re: ANN: JavaScript Test.Simple 0.10

2005-06-24 Thread David Wheeler
On Jun 24, 2005, at 01:21 , Tels wrote: I am a bit confused, does this mean you can run Perl tests from your browser? Or run javascript tests in javascript, and get the same test output like in Perl? The latter. A short sentence "what does it do and how does it work" would been very useful

Re: ANN: JavaScript Test.Simple 0.10

2005-06-24 Thread David Wheeler
On Jun 24, 2005, at 11:43 , Adrian Howard wrote: It probably says something quite sad about my personality that this is the most persuading argument I personally have now for switching to Firefox from Safari :-) Oh, those work in Safari. It's just that Safari doesn't support file:// in

ANN: Test.Simple 0.20

2005-08-17 Thread David Wheeler
Fellow Testers, I give you Test.Simple 0.20. This latest version of my port of Test::Simple and Test::Harness to JavaScript now supports pure .js test scripts in the browser harness. Details and change log here: http://www.justatheory.com/computers/programming/javascript/ test_simple-0.2

Re: purge: opposite of grep

2002-12-08 Thread David Wheeler
? etc.). David -- David Wheeler AIM: dwTheory [EMAIL PROTECTED] ICQ: 15726394 http://david.wheeler.net/ Yahoo!: dew7e Jabber: [EMAIL PROTECTED]

Re: purge: opposite of grep

2002-12-08 Thread David Wheeler
On Sunday, December 8, 2002, at 10:20 AM, Smylers wrote: I dislike C cos it's a small typo away from C. Yes, but I would expect to be a compile-time error, since the signatures are different. The same can't be said for r?index. David -- David Wheeler

Re: This week's Perl 6 summary

2002-12-24 Thread David Wheeler
On Tuesday, December 24, 2002, at 02:55 AM, Piers Cawley wrote: Apparently part of the problem is that the undef function isn't fully defined. Well, isn't that sort-of the point? :-) David -- David Wheeler AIM: dwTheory [EMAIL

Re: L2R/R2L syntax (was Re: Everything is an object.)

2003-01-09 Thread David Wheeler
On Thursday, January 9, 2003, at 03:05 AM, Damian Conway wrote: I don't know about *your* font, but in mine the ~> and <~ versions are at least twice as readable as the |> and <| ones. Just out of curiosity, how did you measure that? ;-) David

Re: L2R/R2L syntax (was Re: Everything is an object.)

2003-01-11 Thread David Wheeler
] »-« [»ord«split//,$y] } and then: #! /usr/bin/perl6 use Symbol::Readability; print delta_r('~>','|>'); How else? Hrm. What was the output? =) David -- David Wheeler AIM: dwTheory [EMAIL PROTECTED]

Re: Protocols

2003-07-24 Thread David Wheeler
quivalence *without* having to inherit from an abstract base class and I wish that interface equivalence were checked before inheritance, as per Luke's idea. Sounds like you want Java-style "interfaces" to me. Regards, David -- David Wheeler AIM:

Re: Protocols

2003-07-24 Thread David Wheeler
On Thursday, July 24, 2003, at 09:25 AM, Kurt Starsinic wrote: Sounds like you want Java-style "interfaces" to me. Follow the thread back. Objective-C had them way first, and their ur-name is "protocols." D'oh! Sorry, I had read that, but then forgot.

Re: Testers & PASS

2003-08-04 Thread David Wheeler
this one when I need to see what tests have passed (I've avoided looking in the past because of the poor performance). Nice one, Leon. Regards, David -- David Wheeler AIM: dwTheory [EMAIL PROTECTED] ICQ: 15726394

Re: [ANNOUNCE] Test::Simple/More/Builder 0.51_01 Alpha release

2004-11-26 Thread David Wheeler
On Nov 26, 2004, at 12:13 AM, Michael G Schwern wrote: This means Test::More has no more critical or important bugs open. I figured it was a good place to pause and kick out an alpha. Works for me, although I did get some warnings: Running [/usr/bin/make UNINST=1 uninst=1 test]... PERL_DL_NONLAZY=1

Re: specifying the key Type for a Hash

2004-12-04 Thread David Wheeler
On Dec 4, 2004, at 10:57 AM, Larry Wall wrote: Well, I just put "is shape" because that's what the PDLers settled on, but as far as I'm concerned linguistically, it could just be "is dim". That would settle the "make-it-like-English" question by making it not at all like English. On the aesthetic h

Re: Arglist I/O [Was: Angle quotes and pointy brackets]

2004-12-06 Thread David Wheeler
On Dec 6, 2004, at 7:38 AM, Austin Hastings wrote: for =<> {...} I dub the...the fish operator! :-) David

Re: Perl 6 Summary for 2004-11-29 through 2004-12-06

2004-12-07 Thread David Wheeler
On Dec 6, 2004, at 6:27 PM, Matt Fowles wrote: getters and setters John Siracusa wanted to know if Perl 6 would allow one to expose a member variable to the outside world, but then later intercept assignments to it without actually having to switch to using getters and setters i

Re: New version of Test::LongString

2004-12-09 Thread David Wheeler
On Dec 9, 2004, at 7:22 AM, Andy Lester wrote: Test::LongString is one of those modules that you should be using if you're doing testing against large data elements, especially web pages. There are now examples in the docs that I hope make you say "Wow, this is cool, thanks RGS!" I use Text::Differ

Re: New version of Test::LongString

2004-12-09 Thread David Wheeler
On Dec 9, 2004, at 1:48 PM, Rafael Garcia-Suarez wrote: It's probably better adapted to text pages. I wrote Test::LongString to debug and test a serialization/deserialization protocol that was producing long binary strings. For this purpose, it was most helpful :) Ah, yeah. Test::Differences is lin

Re: Test::Builder versus Unicode

2004-12-20 Thread David Wheeler
On Dec 20, 2004, at 6:06 PM, Michael G Schwern wrote: use Test::Builder; BEGIN {my $fh = Test::Builder->new->failure_output; binmode $fh, ':utf8';} Test::Builder should do something like this internally, its not like anyone's going to drive binary data through a TB filehandle. The question

Re: Test::Builder versus Unicode

2004-12-20 Thread David Wheeler
On Dec 20, 2004, at 6:13 PM, David Wheeler wrote: If there was a way to tell what mode was on STDERR before you duped it, you could just set it to the same. Something like: my $mode = what_binmode(STDERR); my $fh = $builder->failure_output; binmode $fh, $mode; Is there a module or funct

Re: Test::Builder versus Unicode

2004-12-20 Thread David Wheeler
On Dec 20, 2004, at 6:19 PM, Michael G Schwern wrote: Is there a module or function in Perl that can provide this information? Why does it matter what it was set to before? I'm always going to be shoving text out through this filehandle. It matters because if I'm using Big5 in my module, I *don't

Re: Test::Builder versus Unicode

2004-12-20 Thread David Wheeler
On Dec 20, 2004, at 6:41 PM, Michael G Schwern wrote: PS Somebody should drag autrijus into this. I'll try to grab him on IRC in the morning... Regards, David

Re: Test::Builder versus Unicode

2004-12-22 Thread David Wheeler
On Dec 20, 2004, at 6:44 PM, David Wheeler wrote: PS Somebody should drag autrijus into this. I'll try to grab him on IRC in the morning... I got him this morning. Here's the discussion: 09:50am] Theory: seen autrijus [09:50am] purl: autrijus was last seen on #p5p 1 hour and 32 mi

Re: Pick's randomness (was Re: Fun with junctions (was Sets vs Junctions))

2005-02-14 Thread David Wheeler
On Feb 13, 2005, at 3:54 PM, David Storrs wrote: Ok, so it requires actually overriding the rand function and providing your own implementation. I was hoping for something a bit more automagical (probably involving a property or role, since they seem to be the answer to everything these days), but

Re: Test comments

2005-02-14 Thread David Wheeler
On Feb 14, 2005, at 9:01 PM, chromatic wrote: Here's my list of suggestions for each: 1) label, description 2) directive, instruction 3) diagnostic I want to avoid the word "comment" altogether, making the optionalness of #1 and #3 evident in their words, the activeness of #2 evident in its word,

Re: Fun with junctions (was Sets vs Junctions)

2005-02-15 Thread David Wheeler
On Feb 15, 2005, at 11:06 AM, Larry Wall wrote: So maybe the actual pragma name is use qubits; Note: the pragma is not "use junctions", since they're already allowed to use junctions, as long as they don't try to observe them. :-) To quote Noah, what's a qubit? http://www.jr.co.il/humor/noah

Re: Fun with junctions (was Sets vs Junctions)

2005-02-16 Thread David Wheeler
On Feb 15, 2005, at 11:16 PM, Larry Wall wrote: I admit that calling the .brainf*ck method is problematic several ways... And what of .c#? Regards, David

Re: Junction Values

2005-02-18 Thread David Wheeler
On Feb 18, 2005, at 2:04 AM, Brent 'Dax' Royal-Gordon wrote: Junctions are equivalent to the English sentence "Get eggs, bacon, and toast from the store". (In Perl, that'd be something like C<< $store->get("eggs" & "bacon" & "toast") >>.) It's just a bit of orthogonality that allows you to give "

Re: TAP and STDERR

2005-02-23 Thread David Wheeler
On Feb 23, 2005, at 6:42 PM, chromatic wrote: The way Test::Builder works, diagnostics always go to STDERR. Is there a reason for this beyond "It's tricky to correlate diagnostics to the appropriate test numbers"? (I agree with that, but I'm willing to take my chances on certain occasions.) Perso

Re: TAP and STDERR

2005-02-24 Thread David Wheeler
On Feb 24, 2005, at 2:19 PM, Michael G Schwern wrote: Is this associated with the recent versions of TH that attempt to capture STDERR? No, all my patch did was turn off buffering in the same way that Test::Builder does. Regards, David

TAP/Test::Builder in JS

2005-03-21 Thread David Wheeler
Hi All, Is anyone aware of an implementation of Test::Builder/Simple/More and Test::Harness in JavaScript? The testing scene in JS appears pretty sad, but I don't want to do much in JavaScript without a nice testing framework. And Test::More would be my preferred way to go. (Yes, I know that th

Re: TAP/Test::Builder in JS

2005-03-21 Thread David Wheeler
On Mar 21, 2005, at 1:32 PM, Christopher H. Laco wrote: When you say test JavaScript, what kinds of files are we testing? Server side web scripting using JavaScript? Shell scripts files? And JS that runs in a browser, yes. Regards, David

Re: [Module::Build] Re: Test::META

2005-03-29 Thread David Wheeler
On Mar 28, 2005, at 4:21 PM, Randy W. Sims wrote: I think someone had proposed a year or two ago that there should be a test_requires options and I argued against it. Now, I think maybe it was a good idea; especially, since the number of extra testing modules being used have increased a lot over

  1   2   >