diff --git a/lib/DDG/Goodie/Tips.pm b/lib/DDG/Goodie/Tips.pm index d56875d71..9b8b03bd6 100755 --- a/lib/DDG/Goodie/Tips.pm +++ b/lib/DDG/Goodie/Tips.pm @@ -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; diff --git a/t/Tips.t b/t/Tips.t index 35faf8673..14c82b7a0 100644 --- a/t/Tips.t +++ b/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;