@@ -240,7 +240,7 @@ end);
240240InstallGlobalFunction(DigraphsTestManualExamples,
241241function (arg... )
242242 local exlists, indices, omit, oldscr, passed, pad, total, l, sp, bad, s,
243- start_time, test, end_time, elapsed, pex, str, j, ex, i;
243+ start_time, test, end_time, elapsed, pex, str, j, ex, i, first ;
244244
245245 exlists := DIGRAPHS_ManualExamples();
246246 if Length(arg) > 0 then
@@ -256,11 +256,21 @@ function(arg...)
256256 else
257257 omit := DIGRAPHS_OmitFromTests;
258258 if Length(omit) > 0 then
259- Print(" # not testing examples containing the strings:" );
259+ if Length(omit) = 1 then
260+ Print(" # not testing examples containing the string " );
261+ else
262+ Print(" # not testing examples containing the strings: " );
263+ fi ;
264+ first := true ;
260265 for str in omit do
261266 exlists := Filtered(exlists,
262267 x -> PositionSublist(x[ 1 ][ 1 ] , str) = fail );
263- Print(" , \" " , str, " \" " );
268+ if first then
269+ first := false ;
270+ else
271+ Print(" , " );
272+ fi ;
273+ Print(" \" " , str, " \" " );
264274 od ;
265275 Print(" . . .\n " );
266276 fi ;
0 commit comments