Skip to content

Commit

Permalink
Add additional test
Browse files Browse the repository at this point in the history
  • Loading branch information
uttarayan21 committed Apr 26, 2021
1 parent 83ccd02 commit 371bd6f
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ fn archlinux_ascii() {
ascii.read_to_end(&mut buffer).unwrap();
let text = ansi_to_text(buffer).unwrap();
for line in text.lines {
println!("{:?}", line.width());
print!("{:?} ", line.width());
}
}

Expand All @@ -45,3 +45,16 @@ fn ascii_test() {
let text = ansi_to_text(buffer).unwrap();
println!("{:#?}", text);
}

#[test]
#[ignore]
fn command_test() {
use std::process::Command;

let c = Command::new("ls")
.args(&["--color=always", "/"])
.output()
.unwrap();
let text = ansi_to_text(c.stdout);
println!("{:?}",text);
}

0 comments on commit 371bd6f

Please sign in to comment.