Skip to content

Commit 13cfe2d

Browse files
committed
test: replace at.write by at.touch
1 parent 3a72d5c commit 13cfe2d

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

tests/by-util/test_hashsum.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ fn test_check_strict_error() {
504504
let scene = TestScenario::new(util_name!());
505505
let at = &scene.fixtures;
506506

507-
at.write("f", "");
507+
at.touch("f");
508508
at.write(
509509
"in.md5",
510510
"ERR\nERR\nd41d8cd98f00b204e9800998ecf8427e f\nERR\n",
@@ -523,7 +523,7 @@ fn test_check_warn() {
523523
let scene = TestScenario::new(util_name!());
524524
let at = &scene.fixtures;
525525

526-
at.write("f", "");
526+
at.touch("f");
527527
at.write(
528528
"in.md5",
529529
"d41d8cd98f00b204e9800998ecf8427e f\nd41d8cd98f00b204e9800998ecf8427e f\ninvalid\n",
@@ -551,7 +551,7 @@ fn test_check_status() {
551551
let scene = TestScenario::new(util_name!());
552552
let at = &scene.fixtures;
553553

554-
at.write("f", "");
554+
at.touch("f");
555555
at.write("in.md5", "MD5(f)= d41d8cd98f00b204e9800998ecf8427f\n");
556556
scene
557557
.ccmd("md5sum")
@@ -567,7 +567,7 @@ fn test_check_status_code() {
567567
let scene = TestScenario::new(util_name!());
568568
let at = &scene.fixtures;
569569

570-
at.write("f", "");
570+
at.touch("f");
571571
at.write("in.md5", "d41d8cd98f00b204e9800998ecf8427f f\n");
572572
scene
573573
.ccmd("md5sum")
@@ -584,7 +584,7 @@ fn test_check_no_backslash_no_space() {
584584
let scene = TestScenario::new(util_name!());
585585
let at = &scene.fixtures;
586586

587-
at.write("f", "");
587+
at.touch("f");
588588
at.write("in.md5", "MD5(f)= d41d8cd98f00b204e9800998ecf8427e\n");
589589
scene
590590
.ccmd("md5sum")
@@ -599,7 +599,7 @@ fn test_check_check_ignore_no_file() {
599599
let scene = TestScenario::new(util_name!());
600600
let at = &scene.fixtures;
601601

602-
at.write("f", "");
602+
at.touch("f");
603603
at.write("in.md5", "d41d8cd98f00b204e9800998ecf8427f missing\n");
604604
scene
605605
.ccmd("md5sum")

tests/by-util/test_tail.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3622,7 +3622,7 @@ fn test_when_argument_files_are_simple_combinations_of_stdin_and_regular_file()
36223622
let scene = TestScenario::new(util_name!());
36233623
let at = &scene.fixtures;
36243624

3625-
at.write("empty", "");
3625+
at.touch("empty");
36263626
at.write("data", "file data");
36273627
at.write("fifo", "fifo data");
36283628

@@ -3724,7 +3724,7 @@ fn test_when_argument_files_are_triple_combinations_of_fifo_pipe_and_regular_fil
37243724
let scene = TestScenario::new(util_name!());
37253725
let at = &scene.fixtures;
37263726

3727-
at.write("empty", "");
3727+
at.touch("empty");
37283728
at.write("data", "file data");
37293729
at.write("fifo", "fifo data");
37303730

0 commit comments

Comments
 (0)