mirror of
https://github.com/uutils/coreutils
synced 2024-11-16 17:58:06 +00:00
20 lines
426 B
Rust
20 lines
426 B
Rust
#[macro_use]
|
|
mod common;
|
|
|
|
use common::util::*;
|
|
|
|
static UTIL_NAME: &'static str = "tsort";
|
|
|
|
#[test]
|
|
fn test_sort_call_graph() {
|
|
let (at, mut ucmd) = testing(UTIL_NAME);
|
|
let input = "call_graph.txt";
|
|
let output = "call_graph.expected";
|
|
|
|
let out = ucmd.arg(input)
|
|
.run()
|
|
.stdout;
|
|
|
|
assert_eq!(out,
|
|
String::from_utf8(at.read(output).into_bytes()).unwrap());
|
|
}
|