1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-27 11:07:44 +00:00

cat: add a trivial test

This commit is contained in:
Sylvestre Ledru 2021-04-03 16:06:29 +02:00
parent a852574745
commit 7750db4f8e

View file

@ -3,6 +3,14 @@ extern crate unix_socket;
use crate::common::util::*; use crate::common::util::*;
#[test]
fn test_output_simple() {
new_ucmd!()
.args(&["alpha.txt"])
.succeeds()
.stdout_only("abcde\nfghij\nklmno\npqrst\nuvwxyz\n");
}
#[test] #[test]
fn test_output_multi_files_print_all_chars() { fn test_output_multi_files_print_all_chars() {
new_ucmd!() new_ucmd!()