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

cut: split test function into two functions

This commit is contained in:
Daniel Hofstetter 2024-01-26 10:09:28 +01:00
parent 3318e16608
commit 5bd00eb791

View file

@ -212,7 +212,7 @@ fn test_zero_terminated_only_delimited() {
} }
#[test] #[test]
fn test_directory_and_no_such_file() { fn test_is_a_directory() {
let (at, mut ucmd) = at_and_ucmd!(); let (at, mut ucmd) = at_and_ucmd!();
at.mkdir("some"); at.mkdir("some");
@ -221,7 +221,10 @@ fn test_directory_and_no_such_file() {
.arg("some") .arg("some")
.run() .run()
.stderr_is("cut: some: Is a directory\n"); .stderr_is("cut: some: Is a directory\n");
}
#[test]
fn test_no_such_file() {
new_ucmd!() new_ucmd!()
.arg("-b1") .arg("-b1")
.arg("some") .arg("some")