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

tsort: Add test for ordered floating nodes

Signed-off-by: Detlev Casanova <detlev.casanova@collabora.com>
This commit is contained in:
Detlev Casanova 2023-06-05 11:00:47 -04:00
parent b070506255
commit 43a8d62b90

View file

@ -20,6 +20,14 @@ fn test_sort_self_loop() {
.stdout_only("first\nsecond\n"); .stdout_only("first\nsecond\n");
} }
#[test]
fn test_sort_floating_nodes() {
new_ucmd!()
.pipe_in("d d\nc c\na a\nb b")
.succeeds()
.stdout_only("a\nb\nc\nd\n");
}
#[test] #[test]
fn test_no_such_file() { fn test_no_such_file() {
new_ucmd!() new_ucmd!()