From 88a05a3781bb86dff3949eb817ecc085951cd60d Mon Sep 17 00:00:00 2001 From: Dylan Lloyd Date: Mon, 1 Oct 2012 14:24:27 -0400 Subject: [PATCH] added semicolon to tips results --- lib/DDG/Goodie/Tips.pm | 2 +- t/Tips.t | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) 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;