mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
test: replace at.write by at.touch
This commit is contained in:
parent
3a72d5c5cb
commit
13cfe2d8e5
2 changed files with 8 additions and 8 deletions
|
@ -504,7 +504,7 @@ fn test_check_strict_error() {
|
||||||
let scene = TestScenario::new(util_name!());
|
let scene = TestScenario::new(util_name!());
|
||||||
let at = &scene.fixtures;
|
let at = &scene.fixtures;
|
||||||
|
|
||||||
at.write("f", "");
|
at.touch("f");
|
||||||
at.write(
|
at.write(
|
||||||
"in.md5",
|
"in.md5",
|
||||||
"ERR\nERR\nd41d8cd98f00b204e9800998ecf8427e f\nERR\n",
|
"ERR\nERR\nd41d8cd98f00b204e9800998ecf8427e f\nERR\n",
|
||||||
|
@ -523,7 +523,7 @@ fn test_check_warn() {
|
||||||
let scene = TestScenario::new(util_name!());
|
let scene = TestScenario::new(util_name!());
|
||||||
let at = &scene.fixtures;
|
let at = &scene.fixtures;
|
||||||
|
|
||||||
at.write("f", "");
|
at.touch("f");
|
||||||
at.write(
|
at.write(
|
||||||
"in.md5",
|
"in.md5",
|
||||||
"d41d8cd98f00b204e9800998ecf8427e f\nd41d8cd98f00b204e9800998ecf8427e f\ninvalid\n",
|
"d41d8cd98f00b204e9800998ecf8427e f\nd41d8cd98f00b204e9800998ecf8427e f\ninvalid\n",
|
||||||
|
@ -551,7 +551,7 @@ fn test_check_status() {
|
||||||
let scene = TestScenario::new(util_name!());
|
let scene = TestScenario::new(util_name!());
|
||||||
let at = &scene.fixtures;
|
let at = &scene.fixtures;
|
||||||
|
|
||||||
at.write("f", "");
|
at.touch("f");
|
||||||
at.write("in.md5", "MD5(f)= d41d8cd98f00b204e9800998ecf8427f\n");
|
at.write("in.md5", "MD5(f)= d41d8cd98f00b204e9800998ecf8427f\n");
|
||||||
scene
|
scene
|
||||||
.ccmd("md5sum")
|
.ccmd("md5sum")
|
||||||
|
@ -567,7 +567,7 @@ fn test_check_status_code() {
|
||||||
let scene = TestScenario::new(util_name!());
|
let scene = TestScenario::new(util_name!());
|
||||||
let at = &scene.fixtures;
|
let at = &scene.fixtures;
|
||||||
|
|
||||||
at.write("f", "");
|
at.touch("f");
|
||||||
at.write("in.md5", "d41d8cd98f00b204e9800998ecf8427f f\n");
|
at.write("in.md5", "d41d8cd98f00b204e9800998ecf8427f f\n");
|
||||||
scene
|
scene
|
||||||
.ccmd("md5sum")
|
.ccmd("md5sum")
|
||||||
|
@ -584,7 +584,7 @@ fn test_check_no_backslash_no_space() {
|
||||||
let scene = TestScenario::new(util_name!());
|
let scene = TestScenario::new(util_name!());
|
||||||
let at = &scene.fixtures;
|
let at = &scene.fixtures;
|
||||||
|
|
||||||
at.write("f", "");
|
at.touch("f");
|
||||||
at.write("in.md5", "MD5(f)= d41d8cd98f00b204e9800998ecf8427e\n");
|
at.write("in.md5", "MD5(f)= d41d8cd98f00b204e9800998ecf8427e\n");
|
||||||
scene
|
scene
|
||||||
.ccmd("md5sum")
|
.ccmd("md5sum")
|
||||||
|
@ -599,7 +599,7 @@ fn test_check_check_ignore_no_file() {
|
||||||
let scene = TestScenario::new(util_name!());
|
let scene = TestScenario::new(util_name!());
|
||||||
let at = &scene.fixtures;
|
let at = &scene.fixtures;
|
||||||
|
|
||||||
at.write("f", "");
|
at.touch("f");
|
||||||
at.write("in.md5", "d41d8cd98f00b204e9800998ecf8427f missing\n");
|
at.write("in.md5", "d41d8cd98f00b204e9800998ecf8427f missing\n");
|
||||||
scene
|
scene
|
||||||
.ccmd("md5sum")
|
.ccmd("md5sum")
|
||||||
|
|
|
@ -3622,7 +3622,7 @@ fn test_when_argument_files_are_simple_combinations_of_stdin_and_regular_file()
|
||||||
let scene = TestScenario::new(util_name!());
|
let scene = TestScenario::new(util_name!());
|
||||||
let at = &scene.fixtures;
|
let at = &scene.fixtures;
|
||||||
|
|
||||||
at.write("empty", "");
|
at.touch("empty");
|
||||||
at.write("data", "file data");
|
at.write("data", "file data");
|
||||||
at.write("fifo", "fifo data");
|
at.write("fifo", "fifo data");
|
||||||
|
|
||||||
|
@ -3724,7 +3724,7 @@ fn test_when_argument_files_are_triple_combinations_of_fifo_pipe_and_regular_fil
|
||||||
let scene = TestScenario::new(util_name!());
|
let scene = TestScenario::new(util_name!());
|
||||||
let at = &scene.fixtures;
|
let at = &scene.fixtures;
|
||||||
|
|
||||||
at.write("empty", "");
|
at.touch("empty");
|
||||||
at.write("data", "file data");
|
at.write("data", "file data");
|
||||||
at.write("fifo", "fifo data");
|
at.write("fifo", "fifo data");
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue