Skip to content

Commit

Permalink
run expansion tests at end of cargo dev
Browse files Browse the repository at this point in the history
  • Loading branch information
0b10011 committed May 7, 2024
1 parent 75542a9 commit 720d332
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
[alias]
dev = "watch -x build -x fmt -x clippy -x test"
dev = "watch -x build -x fmt -x clippy -x test -x expansion-tests"
expansion-tests = "test --test expansion -- --ignored"
2 changes: 1 addition & 1 deletion tests/expansion/expected/borrow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ pub const field: test::TestDescAndFn = test::TestDescAndFn {
};
fn field() {
let name = "Liv";
let user = User { name: &name };
let user = User { name };
let data = Data { user: &user };
match (
&{
Expand Down
1 change: 0 additions & 1 deletion tests/expansion/expected/broken.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ pub const broken: test::TestDescAndFn = test::TestDescAndFn {
},
testfn: test::StaticTestFn(#[coverage(off)] || test::assert_test_result(broken())),
};

fn broken() {
std::env::set_var(
"CARGO_MANIFEST_DIR_OVERRIDE",
Expand Down

0 comments on commit 720d332

Please sign in to comment.