diff --git a/lib/DDG/Goodie/CoffeeToWaterRatio.pm b/lib/DDG/Goodie/CoffeeToWaterRatio.pm index 440e7dea2..1cf90da37 100644 --- a/lib/DDG/Goodie/CoffeeToWaterRatio.pm +++ b/lib/DDG/Goodie/CoffeeToWaterRatio.pm @@ -62,7 +62,7 @@ handle remainder => sub { return "1 g to 16.7 ml (0.035 oz. to 0.56 fl. oz.)", structured_answer => { data => { title => '16.7 ml (0.56 fl. oz.)', - subtitle => 'Coffee to water ratio per gram (0.035 ounces):', + subtitle => 'Coffee to water ratio per gram (0.035 ounces)', }, templates => { group => 'text', diff --git a/t/CoffeeToWaterRatio.t b/t/CoffeeToWaterRatio.t index 9783d18b9..ec6ecba20 100644 --- a/t/CoffeeToWaterRatio.t +++ b/t/CoffeeToWaterRatio.t @@ -9,11 +9,12 @@ use DDG::Test::Goodie; zci answer_type => "coffee_to_water_ratio"; zci is_cached => 1; + sub build_structured_answer { my ($input, $result) = @_; my ($title, $subtitle); if ($input eq '') { - $subtitle = "Coffee to water ratio per gram (0.035 ounces):"; + $subtitle = "Coffee to water ratio per gram (0.035 ounces)"; $title = "16.7 ml (0.56 fl. oz.)"; } else { $subtitle = "Water calculation for coffee weight: $input";