1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

nl: re-add handling for -p/--no-renumber

This commit is contained in:
Daniel Hofstetter 2023-08-12 14:36:22 +02:00
parent 7a6bd83859
commit 08e21e183b
2 changed files with 8 additions and 2 deletions

View file

@ -77,7 +77,11 @@ fn test_sections_and_styles() {
#[test]
fn test_no_renumber() {
for arg in ["-p", "--no-renumber"] {
new_ucmd!().arg(arg).succeeds();
new_ucmd!()
.arg(arg)
.pipe_in("a\n\\:\\:\nb")
.succeeds()
.stdout_is(" 1\ta\n\n 2\tb\n");
}
}