use _ to match arbitrary whitespace

This commit is contained in:
zimoch
2010-12-07 12:49:48 +00:00
parent 8142dd27eb
commit 1230c01646

View File

@ -52,14 +52,14 @@ set protocol {
in "text %f end"; out "%(NORD)d elements: %.1f"; in "text %f end"; out "%(NORD)d elements: %.1f";
} }
testi { testi {
Separator = " "; Separator = "\_";
@mismatch {out "mismatch after %(NORD)d elements: %i\n"} @mismatch {out "mismatch after %(NORD)d elements: %i\n"}
in "%3i "; out "%(NORD)d elements: %i"; in "%3i\_"; out "%(NORD)d elements: %i";
} }
tests { tests {
Separator = " ... "; Separator = "\_...\_";
@mismatch {out "mismatch after %(NORD)d elements: %s\n"} @mismatch {out "mismatch after %(NORD)d elements: %s\n"}
in "%s "; out "%(NORD)d elements: %s"; in "%s\_"; out "%(NORD)d elements: %s";
} }
} }