mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
tsort: Add test for ordered floating nodes
Signed-off-by: Detlev Casanova <detlev.casanova@collabora.com>
This commit is contained in:
@@ -20,6 +20,14 @@ fn test_sort_self_loop() {
|
||||
.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]
|
||||
fn test_no_such_file() {
|
||||
new_ucmd!()
|
||||
|
||||
Reference in New Issue
Block a user