mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
Merge pull request #1336 from rinconjc/1321
Fix #1321 tsort handle self-loops
This commit is contained in:
commit
dbc9527b00
2 changed files with 8 additions and 1 deletions
|
@ -8,3 +8,10 @@ fn test_sort_call_graph() {
|
|||
.run()
|
||||
.stdout_is_fixture("call_graph.expected");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_sort_self_loop() {
|
||||
new_ucmd!()
|
||||
.pipe_in("first first\nfirst second second second")
|
||||
.succeeds().stdout_only("first\nsecond\n");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue