I've gotten absolutely no response about Test::Legacy. Is anybody
using it? Anybody tried migrating old Test.pm based tests with it?
--
Michael G Schwern [EMAIL PROTECTED] http://www.pobox.com/~schwern/
I'm crazy but I get the job done.
On Mon, Dec 20, 2004 at 09:52:32PM -0500, Matt Fowles wrote:
: Much churning went on and it seems that multiple different
: (but identically named) rule captures can now be performed by adding
: information after a dash ala " ".
Actually, much churning is still going on in both @Larry
Perl 6 Summary for 2004-12-06 through 2004-12-20
All~
The observant among you might notice that I missed last week's summary.
With the hubbub and confusion of the holidays, I blame ninjas, in
particular Ryu Hyabusa. Given that Christmas is next weekend and New
Years is the week
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
My Official Policy on this is now to let people who actually understand
character encodings to work it out and just wait for a patch.
PS Somebody should drag autrijus into this.
--
Michael G Schwern [EMAIL PROTECTED] http://www.pobox.com/~schwern/
We don't know. But if we did, we would
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
On Mon, Dec 20, 2004 at 06:20:41PM -0800, David Wheeler wrote:
> If not, another option is to add a binmode option to Test::Builder (and
> the modules that depend on it). So you could do something like this:
>
> use Test::More tests => 6, binmode => ':utf8';
>
> Thoughts?
Again, this is not s
On Mon, 2004-12-20 at 18:20 -0800, David Wheeler wrote:
> If not, another option is to add a binmode option to Test::Builder (and
> the modules that depend on it). So you could do something like this:
>
>use Test::More tests => 6, binmode => ':utf8';
>
> Thoughts?
I'd rather override Test:
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 function
On Mon, Dec 20, 2004 at 06:13:54PM -0800, David Wheeler wrote:
> >Test::Builder should do something like this internally, its not like
> >anyone's
> >going to drive binary data through a TB filehandle. The question is
> >how does one do it without breaking older perls?
>
> If there was a way to
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
On Mon, Dec 20, 2004 at 04:50:57PM -0800, Ovid wrote:
> And looking at line 1005:
>
> sub _print_diag {
> my $self = shift;
>
> local($\, $", $,) = (undef, ' ', '');
> my $fh = $self->todo ? $self->todo_output : $self->failure_output;
> print $fh @_; # here there be smart quotes
=head1 Announcing the Do-It-Yourself Phalanx 100!
The Phalanx 100 is a list of the "top 100" modules on CPAN, and by
extension, those that should have the most attention paid to them by
the Phalanx project.
The first time I generated the P100 was over a year ago, and things
are old and stale. Di
=head1 Announcing the Do-It-Yourself Phalanx 100!
The Phalanx 100 is a list of the "top 100" modules on CPAN, and by
extension, those that should have the most attention paid to them by
the Phalanx project.
The first time I generated the P100 was over a year ago, and things
are old and stale. Di
Hi all,
The following code:
use utf8;
use diagnostics;
BEGIN {binmode STDOUT, ':utf8';}
use Test::More tests => 1;
# those are smart quotes
diag "This is a \x{201c}test\x{201d}";
ok 1;
Produces the following error message:
1..1
Wide character in print at /usr/local/lib/perl5/
A few initial questions/comments on some small things -- I'll get
to the bigger constructs a bit later. I'm an "outside-in" designer,
so I tend to work on the macro and micro levels until I meet in the
middle.
> rule identifier() { <> \w* }
Does Perl 6 allow leading underscores in identifiers?
On Mon, Dec 20, 2004 at 03:32:31PM -0700, Luke Palmer wrote:
> We have to make a formal grammar for Perl 6. Perl 6 is a huge language,
> so the task seems better done incrementally by the community. The
> current version can be seen temporarily at
> http://luqui.org/perl6/Grammar.perl6 until the
This list is for people interested in building the Perl 6 compiler. Now
you have your first real task!
We have to make a formal grammar for Perl 6. Perl 6 is a huge language,
so the task seems better done incrementally by the community. The
current version can be seen temporarily at
http://lu
# New Ticket Created by Dan Sugalski
# Please include the string: [perl #33129]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org:80/rt3/Ticket/Display.html?id=33129 >
I'm finding that the N registers are getting messed up with some
function calls, tho
On Mon, Dec 20, 2004 at 02:07:10PM -0700, Patrick R. Michaud wrote:
> On Mon, Dec 20, 2004 at 01:59:57PM +0200, Markus Laire wrote:
> >
> > I was wondering if it would make sense to add the original 're_tests'
> > file to parrot distribution, with a script which autogenerates
> > 're_tests.t' fr
On Mon, Dec 20, 2004 at 05:27:37PM +0200, Markus Laire wrote:
> How should I convert dot, $, ...
>
> 1# p5: "abc" =~ /a.c/; (match)
> 2# p5: "a\nc" =~ /a.c/; (no match)
>
> Equivalent code for '.' would now be '\N'. Still there are tests where I
> could just leave the dot alone (e.g. all test
Leopold Toetsch wrote:
Sam Ruby wrote:
Leopold Toetsch wrote:
The caller sets:
mmd_flag := NULL ... no MMD, plain method lookup
mmd_flag := &depth ... return the next matching method starting
at the given parent search depth
In the general case, how does the ca
On Mon, Dec 20, 2004 at 01:59:57PM +0200, Markus Laire wrote:
>
> I was wondering if it would make sense to add the original 're_tests'
> file to parrot distribution, with a script which autogenerates
> 're_tests.t' from it. This way it would be possible to update the script
> if testing-format
At 12:00 AM +0100 12/20/04, [EMAIL PROTECTED] wrote:
Please
Lets have two scalars variables in Perl and some operation under
them like an adding.
x = a + b
I would like know, witch auxiliary variables are creating
on the in-line code like a Parrot
somethink like T = a + b
x = T ?
On Sun, Dec 19, 2004 at 08:25:58PM -0600, Rod Adams wrote:
: Another facet of this discussion comes into account when also specifying
: type.
:
: from S9:
: my bit @bits;
: my int @ints;
: my num @nums;
: my int4 @nybbles;
: my str @buffers;
: my ref[Array] @ragged2d;
: my complex128 @long
How should I convert dot, $, ...
Some examples:
1# p5: "abc" =~ /a.c/; (match)
2# p5: "a\nc" =~ /a.c/; (no match)
Equivalent code for '.' would now be '\N'. Still there are tests where I
could just leave the dot alone (e.g. all tests where there is no \n in
target-string.)
In test-1 I could l
Sam Ruby wrote:
Leopold Toetsch wrote:
The caller sets:
mmd_flag := NULL ... no MMD, plain method lookup
mmd_flag := &depth ... return the next matching method starting
at the given parent search depth
In the general case, how does the caller know that MMD is i
On Sun, Dec 19, 2004 at 06:44:33PM -0800, chromatic wrote:
> On Sun, 2004-12-19 at 20:25 -0600, Rod Adams wrote:
> > [snipped]
> >
> > $x = 4;
> > $y = 7;
> > $z = 12;
> > $r = 4543;
> > $q = 121;
> >
> > With a fixed width font, like all code editors use, all the =' like up,
> > and I can quick
James Mastros skribis 2004-12-19 23:00 (+0100):
> Juerd wrote:
> >Just typing "my " before the first use of a variable isn't hard, and it
> >makes things much clearer for both the programmer and the machine.
> Does this imply that it's now possible to type C, and
> declare @foo? In the current p
Patrick R. Michaud wrote:
I'm getting errors from the test script itself, there are lines such as
# 65: ^ abc y $&
p6rule_like('abc', '^', qr/0: <\Q\E @/, 're_tests 35/$0 (#35)');
# 66: $ abc y $&
p6rule_like('abc', '$', qr/0: <\Q\E @/, 're_tests 36/$0 (#36)');
which cause my te
On 2004-12-19 at 21:35:46, Luke Palmer wrote:
>In Perl 5 you can do the hackish:
>
>(\my @foo)->[23] = 42;
Hm. My reaction to the above is, and I think I speak for the entire
assemblage when I say this, "Yuckbo."
:)
Now, (my @foo)[23] would be somewhat better, but of course, that's
James Mastros writes:
> Luke Palmer wrote:
> >James Mastros writes:
> >>Does this imply that it's now possible to type C, and
> >>declare @foo? In the current perl, this doesn't work -- it's a syntax
> >>error. It'd certainly make many constructs easier.
> >
> >That looks weird to me. But as R
Luke Palmer wrote:
James Mastros writes:
Does this imply that it's now possible to type C, and
declare @foo? In the current perl, this doesn't work -- it's a syntax
error. It'd certainly make many constructs easier.
That looks weird to me. But as Rod points out, it can be useful with
hashes.
33 matches
Mail list logo