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:
parent
a852574745
commit
7750db4f8e
1 changed files with 8 additions and 0 deletions
|
@ -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!()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue