Skip to content

Commit e1a6bf4

Browse files
Aelnorweihanglo
andcommitted
Update tests/testsuite/init.rs
Co-authored-by: Weihang Lo <weihanglo@users.noreply.github.com>
1 parent 3f8fc0e commit e1a6bf4

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

tests/testsuite/init.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,10 @@ fn creates_binary_when_instructed_and_has_lib_file_no_warning() {
607607
cargo_process("init --bin")
608608
.cwd(&path)
609609
.with_stderr(
610-
"[WARNING] file 'foo.rs' seems to be a library file\n[CREATED] binary (application) package"
610+
"\
611+
[WARNING] file 'foo.rs' seems to be a library file
612+
[CREATED] binary (application) package
613+
",
611614
)
612615
.run();
613616

@@ -624,7 +627,10 @@ fn creates_library_when_instructed_and_has_bin_file() {
624627
cargo_process("init --lib")
625628
.cwd(&path)
626629
.with_stderr(
627-
"[WARNING] file 'foo.rs' seems to be a binary (application) file\n[CREATED] library package"
630+
"\
631+
[WARNING] file 'foo.rs' seems to be a binary (application) file
632+
[CREATED] library package
633+
",
628634
)
629635
.run();
630636

0 commit comments

Comments
 (0)