> -Original Message-
> From: Michael G Schwern [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, November 18, 2003 8:03 PM
> To: Potozniak, Andrew
> Cc: 'chromatic'; [EMAIL PROTECTED]
> Subject: Re: thinking about variable context for like()
>
>
> On
On Tue, Nov 18, 2003 at 12:23:19PM -0500, Potozniak, Andrew wrote:
> Is anyone going to develop this, or is all of this just
> wishfull/theorhetical thinking?
Boy, that sounds like a volunteer if I ever heard one!
Anyhow, it looks like Test::LongString is what you want. Now say thank you
to Ra
Potozniak, Andrew wrote:
>
> Is anyone going to develop this, or is all of this just
> wishfull/theorhetical thinking? If someone will develop this are we going
> to add it to Test::More or create a module wrapped around Test::More with
> the added functionality?
What is "this" feature you're re
the "Reply-All" option)
> -Original Message-
> From: chromatic [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 17, 2003 12:24 PM
> To: Potozniak, Andrew
> Cc: [EMAIL PROTECTED]
> Subject: RE: thinking about variable context for like()
>
>
> O
FWIW, I uploaded Test::LongString 0.03 to CPAN. It implements
like_string() and unlike_string(), and also :
> (That's why I can imagine accepting the default length as an argument
> to Test::LongString::import().)
Chromatic wrote in perl.qa :
> On Mon, 2003-11-17 at 06:54, Potozniak, Andrew wrote:
>
>> What's stopping you from creating this global var
>> and passing it in to the function whenever it is called?
>
> Good taste. If it's going to be more convenient than Test::More's
> like(), go all the way a
On Mon, 2003-11-17 at 06:54, Potozniak, Andrew wrote:
> What's stopping you from creating this global var
> and passing it in to the function whenever it is called?
Good taste. If it's going to be more convenient than Test::More's
like(), go all the way and make it more convenient.
> Or you cou
is the
separation between your function's mechanizm and policy.
Toodles,
~~Andrew
> -Original Message-
> From: Rafael Garcia-Suarez [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 17, 2003 4:24 AM
> To: Potozniak, Andrew
> Cc: [EMAIL PROTECTED]
> Subject:
Potozniak, Andrew wrote:
>
> I would suggest something along the lines of:
>
> &like_html(actual_value, expected_regex, max_chars_to_output,
> string_description);
In fact I think that making max_chars_to_output a global configuration
variable is a better option, because repeating it (if yo
ss than or equal to
max_chars_to_output if the actual_value does not match the expected_regex.
That's just my 2 cents.
Toodles,
~~Andrew
-Original Message-
From: Rafael Garcia-Suarez [mailto:[EMAIL PROTECTED]
Sent: Sunday, November 16, 2003 6:43 AM
To: [EMAIL PROTECTED]
Subject: Re: thinkin
Mark Stosberg wrote in perl.qa :
> I'm frequently using 'like' to test $agent->content against a regular
> expression.
>
> When I have a lot of these in a new test script and they are all
> failing, I get a boatload of HTML source floating by, which
> makes it tedious at times to find out what a
I have a suggestion for "Test::More" that is especially useful with
WWW::Mechanize.
I'm frequently using 'like' to test $agent->content against a regular
expression.
When I have a lot of these in a new test script and they are all
failing, I get a boatload of HTML source floating by, which
ma
12 matches
Mail list logo