Merge branch 'tips'

master
Dylan Lloyd 2012-10-01 14:24:56 -04:00
commit 7ec543d16c
2 changed files with 5 additions and 5 deletions

View File

@ -18,7 +18,7 @@ handle query_lc => sub {
if ($tot) { if ($tot) {
zci answer_type => 'tip'; zci answer_type => 'tip';
return "Tip: \$$t Total: \$$tot"; return "Tip: \$$t; Total: \$$tot";
} }
$t = $sign . $t; $t = $sign . $t;
$tot = $sign . $tot if $tot; $tot = $sign . $tot if $tot;

View File

@ -12,10 +12,10 @@ ddg_goodie_test(
[qw( [qw(
DDG::Goodie::Tips DDG::Goodie::Tips
)], )],
'20% tip on $20' => test_zci('Tip: $4.00 Total: $24.00'), '20% tip on $20' => test_zci('Tip: $4.00; Total: $24.00'),
'20% tip on $20 bill' => test_zci('Tip: $4.00 Total: $24.00'), '20% tip on $20 bill' => test_zci('Tip: $4.00; Total: $24.00'),
'20% tip for a $20 bill' => test_zci('Tip: $4.00 Total: $24.00'), '20% tip for a $20 bill' => test_zci('Tip: $4.00; Total: $24.00'),
'20 percent tip on $20' => test_zci('Tip: $4.00 Total: $24.00'), '20 percent tip on $20' => test_zci('Tip: $4.00; Total: $24.00'),
); );
done_testing; done_testing;