mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
cut: split test function into two functions
This commit is contained in:
parent
3318e16608
commit
5bd00eb791
1 changed files with 4 additions and 1 deletions
|
@ -212,7 +212,7 @@ fn test_zero_terminated_only_delimited() {
|
|||
}
|
||||
|
||||
#[test]
|
||||
fn test_directory_and_no_such_file() {
|
||||
fn test_is_a_directory() {
|
||||
let (at, mut ucmd) = at_and_ucmd!();
|
||||
|
||||
at.mkdir("some");
|
||||
|
@ -221,7 +221,10 @@ fn test_directory_and_no_such_file() {
|
|||
.arg("some")
|
||||
.run()
|
||||
.stderr_is("cut: some: Is a directory\n");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_no_such_file() {
|
||||
new_ucmd!()
|
||||
.arg("-b1")
|
||||
.arg("some")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue