1
Fork 0
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:
Alex Lyon 2019-04-05 19:15:23 -07:00 committed by GitHub
commit dbc9527b00
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View file

@ -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");
}