Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Jun 13, 2023
1 parent 697139c commit 697edc0
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions tests/testsuite/script.rs
Original file line number Diff line number Diff line change
Expand Up @@ -413,11 +413,9 @@ args: ["--help"]
#[cargo_test]
fn test_name_has_weird_chars() {
let script = ECHO_SCRIPT;
let p = cargo_test_support::project()
.file("s-h.w§c!.rs", script)
.build();
let p = cargo_test_support::project().file("s-w§c!", script).build();

p.cargo("-Zscript s-h.w§c!.rs")
p.cargo("-Zscript ./s-w§c!")
.masquerade_as_nightly_cargo(&["script"])
.with_stdout(
r#"bin: [ROOT]/home/.cargo/eval/target/eval/[..]
Expand All @@ -426,15 +424,15 @@ args: []
)
.with_stderr(
r#"[WARNING] `package.edition` is unspecifiead, defaulting to `2021`
[COMPILING] s-h_w_c_ v0.0.0 ([ROOT]/home/.cargo/eval/target/eval/[..]/s-h.w§c!.rs)
[WARNING] crate `s_h_w_c__[..]` should have a snake case name
[COMPILING] s-w_c_ v0.0.0 ([ROOT]/home/.cargo/eval/target/eval/[..]/s-w§c!)
[WARNING] crate `s_w_c__[..]` should have a snake case name
|
= help: convert the identifier to snake case: `s_h_w_c_[..]`
= help: convert the identifier to snake case: `s_w_c_[..]`
= note: `#[warn(non_snake_case)]` on by default
[WARNING] `s-h_w_c_` (bin "s-h_w_c__[..]") generated 1 warning
[WARNING] `s-w_c_` (bin "s-w_c__[..]") generated 1 warning
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]s
[RUNNING] `[ROOT]/home/.cargo/eval/target/eval/[..]/s-h.w§c!.rs/target/debug/s-h_w_c__[..]`
[RUNNING] `[ROOT]/home/.cargo/eval/target/eval/[..]/s-w§c!/target/debug/s-w_c__[..]`
"#,
)
.run();
Expand Down

0 comments on commit 697edc0

Please sign in to comment.