Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 9e06938c

Von Moritz Bunkus vor mehr als 4 Jahren hinzugefügt

  • ID 9e06938c75b698f611b1c67f99c583618a701e96
  • Vorgänger 5c0b8569
  • Nachfolger dccb820a

Number-Helper-Tests: Warnungen vermeiden

$config war unbenutzt und wurde deshalb entfernt. Die Variable stammt
aus dem alten form/round_amount.t-Test, wo sie ebenfalls zwar
deklariert war aber nicht benutzt wurde.

Unterschiede anzeigen:

t/helper/number.t
}
# test _format_total
if ($places == 2) {
if (($places // 0) == 2) {
is (_format_total($amount, numberformat => $numberformat, dash => $dash), $expected, "$comment - explicit");
{
......
test_format('1.00', 1, -2, '1,000.00', undef, 'negative places 3');
# bugs amd edge cases
$config->{numberformat} = '1.000,00';
test_format('0,00005', 0.00005, undef, '1.000,00', undef, 'messing with small numbers and no precision');
test_format('0', undef, undef, '1.000,00', undef, 'undef');
test_format('0', '', undef, '1.000,00', undef, 'empty string');

Auch abrufbar als: Unified diff