Skip Menu |
 

This queue is for tickets about the Template-Plugin-Autoformat CPAN distribution.

Report information
The Basics
Id: 41796
Status: resolved
Priority: 0/
Queue: Template-Plugin-Autoformat

People
Owner: karman [...] cpan.org
Requestors: frank.wiegand [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 2.71
Fixed in: (no value)



Subject: test failure: t/autoform.t
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Type: text/plain
Charset: utf8
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 6241
Template::Plugin::Autoformat does not pass its test suite: % perl Makefile.PL Writing Makefile for Template-Plugin-Autoformat % make Manifying blib/man3/Template::Plugin::Autoformat.3pm % make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/autoform.t t/autoform....1/25 FAILED 23: - template text 10 did not match expected FAILED 25: - template text 11 did not match expected t/autoform.... Failed 2/25 subtests Test Summary Report ------------------- t/autoform (Wstat: 0 Tests: 25 Failed: 2) Failed tests: 23, 25 Files=1, Tests=25, 0 wallclock secs ( 0.04 usr 0.00 sys + 0.15 cusr 0.00 csys = 0.19 CPU) Result: FAIL Failed 1/1 test programs. 2/25 subtests failed. make: *** [test_dynamic] Fehler 255 % perl -Iblib t/autoform.t 1..25 ok 1 - running test_expect() ok 2 - template processor is engaged ok 3 - input read and split into 11 tests ok 4 - template text 1 processed OK: [% global.text = BLOCK %]\nThis i... ok 5 - template text 1 matched expected ok 6 - template text 2 processed OK: [% USE autoformat(left=5) %]\n[% ... ok 7 - template text 2 matched expected ok 8 - template text 3 processed OK: [% USE autoformat %]\n[% autoform... ok 9 - template text 3 matched expected ok 10 - template text 4 processed OK: [% USE autoformat(left=10) %]\n[%... ok 11 - template text 4 matched expected ok 12 - template text 5 processed OK: [% USE autoformat(left=5) %]\n[% ... ok 13 - template text 5 matched expected ok 14 - template text 6 processed OK: [% USE autoformat %]\n[% FILTER a... ok 15 - template text 6 matched expected ok 16 - template text 7 processed OK: [% USE autoformat %]\n[% autoform... ok 17 - template text 7 matched expected ok 18 - template text 8 processed OK: [% USE autoformat %]\n[% autoform... ok 19 - template text 8 matched expected ok 20 - template text 9 processed OK: [% USE autoformat %]\n[% FILTER p... ok 21 - template text 9 matched expected ok 22 - template text 10 processed OK: Item Description C... MATCH FAILED input: [Item Description Cost =================================== [% form = BLOCK %] <<<<<< [[[[[[[[[[[[[[[ >>>>.<< [% END -%] [% USE autoformat(form => form) %] [% autoformat('foo', 'The Foo Item', 123.545) %] [% autoformat('bar', 'The Bar Item', 456.789) %] ] expect: [Item Description Cost =================================== foo The Foo Item 123.55 bar The Bar Item 456.79] output: [Item Description Cost =================================== foo The Foo Item 123,00 bar The Bar Item 456,79] FAILED 23: - template text 10 did not match expected not ok 23 - template text 10 did not match expected ok 24 - template text 11 processed OK: [% USE autoformat(form => '>>>.<... MATCH FAILED input: [[% USE autoformat(form => '>>>.<<', numeric => 'AllPlaces') %] [% autoformat(n) FOREACH n = [ 123, 34.54, 99 ] +%] [% autoformat(987, 654.32) %] ] expect: [123.00 34.54 99.00 987.00 654.32] output: [123,00 34,54 99,00 987,00 654,32] FAILED 25: - template text 11 did not match expected not ok 25 - template text 11 did not match expected % perl -V Summary of my perl5 (revision 5 version 10 subversion 0) configuration: Platform: osname=linux, osvers=2.6.26-1-vserver-amd64, archname=x86_64-linux-gnu-thread-multi uname='linux excelsior 2.6.26-1-vserver-amd64 #1 smp sat nov 8 20:24:14 utc 2008 x86_64 gnulinux ' config_args='-Dusethreads -Duselargefiles -Dccflags=-DDEBIAN -Dcccdlflags=-fPIC -Darchname=x86_64-linux-gnu -Dprefix=/usr -Dprivlib=/usr/share/perl/5.10 -Darchlib=/usr/lib/perl/5.10 -Dvendorprefix=/usr -Dvendorlib=/usr/share/perl5 -Dvendorarch=/usr/lib/perl5 -Dsiteprefix=/usr/local -Dsitelib=/usr/local/share/perl/5.10.0 -Dsitearch=/usr/local/lib/perl/5.10.0 -Dman1dir=/usr/share/man/man1 -Dman3dir=/usr/share/man/man3 -Dsiteman1dir=/usr/local/man/man1 -Dsiteman3dir=/usr/local/man/man3 -Dman1ext=1 -Dman3ext=3perl -Dpager=/usr/bin/sensible-pager -Uafs -Ud_csh -Ud_ualarm -Uusesfio -Uusenm -DDEBUGGING=-g -Doptimize=-O2 -Duseshrplib -Dlibperl=libperl.so.5.10.0 -Dd_dosuid -des' hint=recommended, useposix=true, d_sigaction=define useithreads=define, usemultiplicity=define useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef use64bitint=define, use64bitall=define, uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', optimize='-O2 -g', cppflags='-D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include' ccversion='', gccversion='4.3.2', gccosandvers='' intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='cc', ldflags =' -L/usr/local/lib' libpth=/usr/local/lib /lib /usr/lib /lib64 /usr/lib64 libs=-lgdbm -lgdbm_compat -ldb -ldl -lm -lpthread -lc -lcrypt perllibs=-ldl -lm -lpthread -lc -lcrypt libc=/lib/libc-2.7.so, so=so, useshrplib=true, libperl=libperl.so.5.10.0 gnulibc_version='2.7' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E' cccdlflags='-fPIC', lddlflags='-shared -O2 -g -L/usr/local/lib' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP USE_64_BIT_ALL USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES USE_PERLIO USE_REENTRANT_API Built under linux Compiled at Nov 27 2008 21:47:49 %ENV: PERL_AUTOINSTALL="--defaultdeps" PERL_EXTUTILS_AUTOINSTALL="--defaultdeps" PERL_MM_USE_DEFAULT="1" @INC: /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl . Thanks, Frank
MIME-Version: 1.0
X-Spam-Status: No, hits=-0.0 required=8.0 tests=SPF_HELO_PASS
In-Reply-To: <rt-3.6.HEAD-19694-1229551950-154.41796-4-0 [...] rt.cpan.org>
References: <RT-Ticket-41796 [...] rt.cpan.org> <rt-3.6.HEAD-19694-1229551950-154.41796-4-0 [...] rt.cpan.org>
Message-ID: <494A084E.1090703 [...] wardley.org>
Content-Type: text/plain; charset=UTF-8; format=flowed
X-RT-Original-Encoding: utf-8
Received: from la.mx.develooper.com (x1.develooper.com [63.251.223.170]) by diesel.bestpractical.com (Postfix) with SMTP id E57C44D8084 for <bug-Template-Plugin-Autoformat [...] rt.cpan.org>; Thu, 18 Dec 2008 03:22:51 -0500 (EST)
Received: (qmail 17507 invoked by uid 103); 18 Dec 2008 08:22:51 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 18 Dec 2008 08:22:51 -0000
Received: from gnu.ourshack.com (HELO gnu.ourshack.com) (84.45.68.121) by 16.mx.develooper.com (qpsmtpd/0.43rc1) with ESMTP; Thu, 18 Dec 2008 00:22:45 -0800
Received: from cpc3-glfd3-0-0-cust917.glfd.cable.ntl.com ([86.17.251.150] helo=[192.168.1.105]) by gnu.ourshack.com with esmtpa (Exim 4.68) (envelope-from <abw [...] wardley.org>) id 1LDE9W-000776-RA for bug-Template-Plugin-Autoformat [...] rt.cpan.org; Thu, 18 Dec 2008 08:22:39 +0000
Delivered-To: cpan-bug+Template-Plugin-Autoformat [...] diesel.bestpractical.com
Subject: Re: [rt.cpan.org #41796] test failure: t/autoform.t
User-Agent: Thunderbird 2.0.0.18 (Macintosh/20081105)
Return-Path: <abw [...] wardley.org>
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: bug-Template-Plugin-Autoformat [...] rt.cpan.org
Date: Thu, 18 Dec 2008 08:22:38 +0000
X-Spam-Level: *
To: bug-Template-Plugin-Autoformat [...] rt.cpan.org
Content-Transfer-Encoding: 7bit
From: Andy Wardley <abw [...] wardley.org>
RT-Message-ID: <rt-3.6.HEAD-19694-1229588578-122.41796-0-0 [...] rt.cpan.org>
Content-Length: 111
Download (untitled) / with headers
text/plain 111b
Hi Frank, What locale are you using? I thought I had accounted for different locales, but obviously not. A
MIME-Version: 1.0
X-Spam-Status: No, hits=0.0 required=8.0 tests=DK_SIGNED,SPF_PASS
In-Reply-To: <rt-3.6.HEAD-19694-1229588578-122.41796-6-0 [...] rt.cpan.org>
X-Mailer: Evolution 2.22.3.1
References: <RT-Ticket-41796 [...] rt.cpan.org> <rt-3.6.HEAD-19694-1229551950-154.41796-4-0 [...] rt.cpan.org> <494A084E.1090703 [...] wardley.org> <rt-3.6.HEAD-19694-1229588578-122.41796-6-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <1229589287.3933.5.camel [...] hal2>
X-RT-Original-Encoding: utf-8
Received: from la.mx.develooper.com (x1.develooper.com [63.251.223.170]) by diesel.bestpractical.com (Postfix) with SMTP id 0BD394D8084 for <bug-Template-Plugin-Autoformat [...] rt.cpan.org>; Thu, 18 Dec 2008 03:35:06 -0500 (EST)
Received: (qmail 21200 invoked by uid 103); 18 Dec 2008 08:35:06 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 18 Dec 2008 08:35:06 -0000
Received: from mail-bw0-f20.google.com (HELO mail-bw0-f20.google.com) (209.85.218.20) by 16.mx.develooper.com (qpsmtpd/0.43rc1) with ESMTP; Thu, 18 Dec 2008 00:35:02 -0800
Received: by bwz13 with SMTP id 13so855445bwz.21 for <bug-Template-Plugin-Autoformat [...] rt.cpan.org>; Thu, 18 Dec 2008 00:34:58 -0800 (PST)
Received: by 10.181.215.9 with SMTP id s9mr574157bkq.212.1229589298224; Thu, 18 Dec 2008 00:34:58 -0800 (PST)
Received: from ?192.168.2.101? (e178201034.adsl.alicedsl.de [85.178.201.34]) by mx.google.com with ESMTPS id 22sm5380301fkr.24.2008.12.18.00.34.56 (version=SSLv3 cipher=RC4-MD5); Thu, 18 Dec 2008 00:34:57 -0800 (PST)
Delivered-To: cpan-bug+Template-Plugin-Autoformat [...] diesel.bestpractical.com
Subject: Re: [rt.cpan.org #41796] test failure: t/autoform.t
Domainkey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:in-reply-to:references:content-type:date:message-id :mime-version:x-mailer:content-transfer-encoding; b=fnWWS5hIw8Nh2dCv/WL5u5q0MuyL0tvL9G9u4a5wHW+uaWuJfZ3zwKmLGvZHV9XCF8 xpPVOEKP4wo8PryrV0+GFml0jX0K7AhrDKTeXXezWTwdPn2Q1xt8T1yI6jjjGU+hjBUc +L7aju493uOdZcu4V5Htteb/mT8MABYMr/eu8=
Return-Path: <frank.wiegand [...] gmail.com>
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:in-reply-to :references:content-type:date:message-id:mime-version:x-mailer :content-transfer-encoding; bh=bdFwu1Ku1flIJdzbZ+ZK2EH9AjaN5FucS106AqOKwLU=; b=OjhEjIbk1JgQMKWkncXjf0o215wVuk3VKQv04HJRHhY40dzhFSG3bnDaU5v08hdICI 7yGjAkZjcu2VRbHVtcqS7I3sLnfbJiyhK/Cpu7CDl8hCZSufgm2Pz5eIPqO5K1bd9AAx nwqbsNpEkNQ7kqf8yIJeR1eyBxytDRFdQe3E8=
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: bug-Template-Plugin-Autoformat [...] rt.cpan.org
Date: Thu, 18 Dec 2008 09:34:47 +0100
X-Spam-Level: *
To: bug-Template-Plugin-Autoformat [...] rt.cpan.org
Content-Transfer-Encoding: 7bit
From: Frank Wiegand <frank.wiegand [...] gmail.com>
RT-Message-ID: <rt-3.6.HEAD-19694-1229589311-1197.41796-0-0 [...] rt.cpan.org>
Content-Length: 881
Download (untitled) / with headers
text/plain 881b
Am Donnerstag, den 18.12.2008, 03:22 -0500 schrieb Andy Wardley via RT: Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=41796 > > What locale are you using? I thought I had accounted for different > locales, but obviously not.
de_DE.UTF-8, yes, it's a locale issue: % LANG=de_DE.UTF-8 prove -b t/autoform.t t/autoform....1/25 FAILED 23: - template text 10 did not match expected FAILED 25: - template text 11 did not match expected t/autoform.... Failed 2/25 subtests Test Summary Report ------------------- t/autoform (Wstat: 0 Tests: 25 Failed: 2) Failed tests: 23, 25 Files=1, Tests=25, 0 wallclock secs ( 0.04 usr 0.00 sys + 0.16 cusr 0.00 csys = 0.20 CPU) Result: FAIL % LANG=C prove -b t/autoform.t t/autoform....ok All tests successful. Files=1, Tests=25, 0 wallclock secs ( 0.03 usr 0.00 sys + 0.16 cusr 0.00 csys = 0.19 CPU) Result: PASS Bye, Frank
MIME-Version: 1.0
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-26424-1398917494-278.41796-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 509
Download (untitled) / with headers
text/plain 509b
I have taken over maintenance of this module. Since so much time has passed and I don't have a repo history, I can't really tell if this issue has been addressed or not. I see locale testing in the t/autoform.t file which seems to indicate some effort has been made to address the issue. Version 2.74_01 has been uploaded to PAUSE, which fixes the case problems in the plugin detection by standardizing on initial cap spelling. I will wait for cpantesters to tell me whether it also fixes this locale issue.
MIME-Version: 1.0
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-31728-1399651440-341.41796-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 140
Download (untitled) / with headers
text/plain 140b
2.75 just uploaded to CPAN should fix this particular test. It was caused by a rounding discrepancy in sprintf() in the Test::Reform module.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.