mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
tsort: Add test for ordered floating nodes
Signed-off-by: Detlev Casanova <detlev.casanova@collabora.com>
This commit is contained in:
parent
b070506255
commit
43a8d62b90
1 changed files with 8 additions and 0 deletions
|
@ -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!()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue