use _ to match arbitrary whitespace
This commit is contained in:
@ -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";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user