Skip Menu |

This queue is for tickets about the Net-SAJAX CPAN distribution.

Report information
The Basics
Id: 54447
Status: resolved
Priority: 0/
Queue: Net-SAJAX

People
Owner: DOUGDUDE [...] cpan.org
Requestors: DOUGDUDE [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in:
  • 0.104
  • 0.105
Fixed in: 0.106



Subject: t/javascript_types.t fails on Perl 5.11.x
# Failed test 'Regular expression (object)' # at t/javascript_types.t line 107. # Structures begin differing at: # $got = (?-xism:(?:(?-xism:(?{@Match=@EraseCapture=()}))test[^\cm\cj\x{2028}\x{2029}]+)) # $expected = (?-xism:test.+) # Looks like you failed 1 test of 14. t/javascript_types.t .... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/14 subtests
Seems like the test_deep no longer thinks the two regular expressions are similar in Perl 5.11.x.
Looks like JE::Object::RegExp changes "." to "[^\cm\cj\x{2028}\x{2029}]" to make the regular expression match ECMAScript's behavior in Perl. Not sure why they matched in older perls in the first place.
On Tue Feb 09 12:32:12 2010, DOUGDUDE wrote: Show quoted text
> Fixed in > http://github.com/dougwilson/perl5-net- > sajax/commit/d901107fe8f274c3878b1fdeaf826aef501aafa3
Looks like that didn't fix it.
On Tue Feb 09 12:26:47 2010, DOUGDUDE wrote: Show quoted text
> # Failed test 'Regular expression (object)' > # at t/javascript_types.t line 107. > # Structures begin differing at: > # $got = > (?-xism:(?:(?- > xism:(?{@Match=@EraseCapture=()}))test[^\cm\cj\x{2028}\x{2029}]+)) > # $expected = (?-xism:test.+) > # Looks like you failed 1 test of 14. > t/javascript_types.t .... > Dubious, test returned 1 (wstat 256, 0x100) > Failed 1/14 subtests
I see the same problem with perl 5.10.1 and Test-Simple-0.95_02. With the same perl and Test-Simple-0.94 all tests pass. Regards, Slaven
Show quoted text
> I see the same problem with perl 5.10.1 and Test-Simple-0.95_02. With > the same perl and Test-Simple-0.94 all tests pass. > > Regards, > Slaven >
I've been out of the country, but am back and have uploaded version 0.106 which should have this stomped out once and for all. C:\Users\Douglas>perl -v This is perl 5, version 12, subversion 0 (v5.12.0) built for MSWin32-x86-multi-thread t/00-load.t ............. 1/1 # Testing Net::SAJAX 0.106, Perl 5.012000, C:\STRAWB~1\perl\bin\perl.exe t/00-load.t ............. ok t/attributes.t .......... ok t/constructor.t ......... ok t/javascript_types.t .... ok t/request_complex.t ..... ok t/request_diagnostic.t .. ok t/request_garbage.t ..... ok t/request_malformed.t ... ok t/request_simple.t ...... ok t/request_url.t ......... ok All tests successful. Files=10, Tests=89, 48 wallclock secs ( 0.41 usr + 0.23 sys = 0.64 CPU) Result: PASS DOUGDUDE/Net-SAJAX-0.106.tar.gz