Permalink
Browse files

Changed how failure message handles past/present tense.

  • Loading branch information...
soh-cah-toa committed Oct 3, 2011
1 parent 513d47a commit 7186d1ebb50813b6a155e266f60964696ccbecdc
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Test/Builder/Plan.pm
View
@@ -23,11 +23,11 @@ class Test::Builder::Plan does Test::Builder::Plan::Base {
method footer(Int $ran) returns Str {
# Determine whether to use past or present tense in message
- my Str $tests = $.expected > 1 ?? 'tests' !! 'test';
+ my Str $s = $.expected == 1 ?? '' !! 's';
return $ran == $.expected
?? ''
- !! "\# Looks like you planned $.expected $tests but ran $ran.";
+ !! "\# Looks like you planned $.expected test$s but ran $ran.";
}
}

0 comments on commit 7186d1e

Please sign in to comment.