Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurenzV committed Aug 21, 2024
1 parent 0bb4b1c commit 76ef9e0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ pub(crate) mod test_utils {

let actual = std::fs::read(&path).unwrap();

assert!(actual == content);

if REPLACE && &actual != content {
std::fs::write(&path, content).unwrap();
panic!("test was replaced");
Expand Down

0 comments on commit 76ef9e0

Please sign in to comment.