Skip to content

Commit

Permalink
Update inner_attributes_example test
Browse files Browse the repository at this point in the history
  • Loading branch information
smoelius committed Feb 1, 2024
1 parent 571d514 commit 52a7a08
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cast_checks/tests/inner_attribute_example.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
use assert_cmd::Command;
use std::env::remove_var;
use tempfile::tempdir;

#[ctor::ctor]
fn initialize() {
remove_var("CARGO_TERM_COLOR");
}

#[test]
fn build() {
run_command("build", |mut command| {
command.env("CAST_CHECKS_LOG", "1");
command.assert().success().stdout(
"\
cast_checks rewriting `x as u16` at src/lib.rs:0:0
cast_checks not descending into `mod c ;` at src/lib.rs:0:0
cast_checks not descending into `mod c;` at src/lib.rs:0:0
",
);
});
Expand Down

0 comments on commit 52a7a08

Please sign in to comment.