From 16859cdbdcbf102f8573c5dc344f09b2817096bb Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Mon, 7 Jul 2003 07:08:24 +0000 Subject: [PATCH] Improved the summary output to use correct English for all counts. --- wildtest.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/wildtest.c b/wildtest.c index 3c40e4ae..48161d90 100644 --- a/wildtest.c +++ b/wildtest.c @@ -139,15 +139,17 @@ main(int argc, char **argv) } if (!wildmatch_errors) - printf("No wildmatch errors found.\n"); + fputs("No", stdout); else - printf("Found %d wildmatch errors.\n", wildmatch_errors); + printf("%d", wildmatch_errors); + printf(" wildmatch error%s found.\n", wildmatch_errors == 1? "" : "s"); #ifdef COMPARE_WITH_FNMATCH if (!fnmatch_errors) - printf("No fnmatch errors found.\n"); + fputs("No", stdout); else - printf("Found %d fnmatch errors.\n", fnmatch_errors); + printf("%d", fnmatch_errors); + printf(" fnmatch error%s found.\n", fnmatch_errors == 1? "" : "s"); #endif -- 2.34.1