1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 19:47:45 +00:00

Merge pull request #7078 from jfinkels/tsort-split-whitespace

tsort: split edge data on any whitespace chars
This commit is contained in:
Daniel Hofstetter 2025-01-05 15:27:43 +01:00 committed by GitHub
commit e3acd5ab07
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 62 additions and 46 deletions

View file

@ -75,3 +75,11 @@ fn test_error_on_dir() {
.fails()
.stderr_contains("tsort: tsort_test_dir: read error: Is a directory");
}
#[test]
fn test_split_on_any_whitespace() {
new_ucmd!()
.pipe_in("a\nb\n")
.succeeds()
.stdout_only("a\nb\n");
}