Merge branch 'tips'
commit
7ec543d16c
|
@ -18,7 +18,7 @@ handle query_lc => sub {
|
|||
|
||||
if ($tot) {
|
||||
zci answer_type => 'tip';
|
||||
return "Tip: \$$t Total: \$$tot";
|
||||
return "Tip: \$$t; Total: \$$tot";
|
||||
}
|
||||
$t = $sign . $t;
|
||||
$tot = $sign . $tot if $tot;
|
||||
|
|
8
t/Tips.t
8
t/Tips.t
|
@ -12,10 +12,10 @@ ddg_goodie_test(
|
|||
[qw(
|
||||
DDG::Goodie::Tips
|
||||
)],
|
||||
'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 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% 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 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'),
|
||||
);
|
||||
|
||||
done_testing;
|
||||
|
|
Loading…
Reference in New Issue