Fixed pluralization bug from GitHub issue #101
This commit is contained in:
parent
46bcd4b2b7
commit
f606517376
2 changed files with 4 additions and 4 deletions
|
@ -90,7 +90,7 @@ namespace Catch {
|
|||
else {
|
||||
TextColour colour( TextColour::ResultSuccess );
|
||||
m_config.stream() << allPrefix << "tests passed ("
|
||||
<< pluralise( totals.assertions.passed, "assertion" ) << " in "
|
||||
<< pluralise( totals.assertions.passed, "assertion" ) << " in "
|
||||
<< pluralise( totals.testCases.passed, "test case" ) << ")";
|
||||
}
|
||||
}
|
||||
|
@ -155,7 +155,7 @@ namespace Catch {
|
|||
else {
|
||||
TextColour colour( TextColour::ResultSuccess );
|
||||
m_config.stream() << ( assertions.passed > 1 ? "All " : "" )
|
||||
<< pluralise( assertions.passed, "assertion" ) << "passed" ;
|
||||
<< pluralise( assertions.passed, "assertion" ) << " passed" ;
|
||||
}
|
||||
m_config.stream() << "]\n" << std::endl;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue