Skip Menu |

This queue is for tickets about the Module-Generic CPAN distribution.

Report information
The Basics
Id: 132674
Status: resolved
Priority: 0/
Queue: Module-Generic

People
Owner: JDEGUEST [...] cpan.org
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

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



Subject: Test failure (if default locale is a German one?) (v0.12.8)
On a FreeBSD 10 system: ... # Failed test 'Decimal separator' # at t/02.num.t line 112. # got: ',' # expected: '.' # Failed test 'Thousand separator' # at t/02.num.t line 113. # got: '.' # expected: ',' # Failed test 'Formatting number using format()' # at t/02.num.t line 122. # got: '1.281.284,00' # expected: '1,281,284.00' Use of uninitialized value in concatenation (.) or string at /usr/perl5.26.1p/lib/site_perl/5.26.1/Number/Format.pm line 947. # Failed test 'Formatting money using format_money()' # at t/02.num.t line 126. Wide character in print at /home/cpansand/.cpan/build/2020052217/Test-Simple-1.302175-0/blib/lib/Test2/Formatter/TAP.pm line 125. # got: '€1.281.284,00' # expected: '€1,281,284.00' # Failed test 'Formatting negative number => (1,281,284.00)' # at t/02.num.t line 130. # got: '(1.281.284,00)' # expected: '(1,281,284.00)' # Failed test 'atan' # at t/02.num.t line 133. # got: '15707955463278' # expected: '1.5707955463278' # Failed test 'atan2' # at t/02.num.t line 135. # got: '157078696118977' # expected: '1.57078696118977' # Failed test 'cbrt' # at t/02.num.t line 137. # got: '108612997866582' # expected: '108.612997866582' # Failed test 'ceil' # at t/02.num.t line 138. # got: '108612997866582' # expected: '109' # Failed test 'floor' # at t/02.num.t line 139. # got: '108612997866582' # expected: '108' # Failed test 'cos' # at t/02.num.t line 140. # got: '-413777602170324' # expected: '-0.413777602170324' # Failed test 'exp' # at t/02.num.t line 141. # got: '200855369231877' # expected: '20.0855369231877' # Failed test 'int' # at t/02.num.t line 142. # got: '108612997866582' # expected: '108' # Failed test 'log' # at t/02.num.t line 147. # got: '140633732581021' # expected: '14.0633732581021' # Failed test 'log2' # at t/02.num.t line 148. # got: '202891588576344' # expected: '20.2891588576344' # Failed test 'log10' # at t/02.num.t line 149. # got: '610764540293951' # expected: '6.10764540293951' # Failed test 'Rounding' # at t/02.num.t line 156. # got: '3.14159265358979e+18' # expected: '3.1416' # Failed test 'sin' # at t/02.num.t line 157. # got: '-910377996187395' # expected: '-0.910377996187395' # Failed test 'sqrt' # at t/02.num.t line 158. # got: '113193816085509' # expected: '1131.93816085509' # Failed test 'tan' # at t/02.num.t line 159. # got: '220016257867108' # expected: '2.20016257867108' # Failed test 'Number length' # at t/02.num.t line 160. # got: '15' # expected: '16' # Failed test 'Is float' # at t/02.num.t line 162. # Failed test 'Formatting as bytes' # at t/02.num.t line 208. # got: '1,22M' # expected: '1.22M' # Looks like you failed 23 tests of 138. t/02.num.t ..... Dubious, test returned 23 (wstat 5888, 0x1700) Failed 23/138 subtests ... Not sure what's the problem here, but this smoker is running with a German locale by default (LC_ALL=de_DE.ISO8859-1), so maybe this is the problem here.
Fixed in upcoming version v0.12.9 Thank you for the support!