diff options
Diffstat (limited to 'testsuite/sed.tests')
-rwxr-xr-x | testsuite/sed.tests | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/testsuite/sed.tests b/testsuite/sed.tests index 468565f47..2af1e4c97 100755 --- a/testsuite/sed.tests +++ b/testsuite/sed.tests | |||
@@ -310,6 +310,27 @@ testing "sed zero chars match/replace logic must not falsely trigger here 2" \ | |||
310 | "sed 's/ *$/_/g'" \ | 310 | "sed 's/ *$/_/g'" \ |
311 | "qwerty_\n" "" "qwerty\n" | 311 | "qwerty_\n" "" "qwerty\n" |
312 | 312 | ||
313 | testing "sed /\$_in_regex/ should not match newlines, only end-of-line" \ | ||
314 | "sed ': testcont; /\\\\$/{ =; N; b testcont }'" \ | ||
315 | "\ | ||
316 | this is a regular line | ||
317 | 2 | ||
318 | line with \\ | ||
319 | continuation | ||
320 | more regular lines | ||
321 | 5 | ||
322 | line with \\ | ||
323 | continuation | ||
324 | " \ | ||
325 | "" "\ | ||
326 | this is a regular line | ||
327 | line with \\ | ||
328 | continuation | ||
329 | more regular lines | ||
330 | line with \\ | ||
331 | continuation | ||
332 | " | ||
333 | |||
313 | # testing "description" "commands" "result" "infile" "stdin" | 334 | # testing "description" "commands" "result" "infile" "stdin" |
314 | 335 | ||
315 | exit $FAILCOUNT | 336 | exit $FAILCOUNT |