Skip to content

Commit

Permalink
fix non_fmt_panic warning in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lqd committed Apr 28, 2021
1 parent efc991b commit a776332
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -290,19 +290,22 @@ fn smoke_test_errors() {
let location_insensitive = Output::compute(&facts, Algorithm::LocationInsensitive, true);
assert!(
!location_insensitive.errors.is_empty(),
format!("LocationInsensitive didn't find errors for '{}'", test_fn)
"LocationInsensitive didn't find errors for '{}'",
test_fn
);

let naive = Output::compute(&facts, Algorithm::Naive, true);
assert!(
!naive.errors.is_empty(),
format!("Naive didn't find errors for '{}'", test_fn)
"Naive didn't find errors for '{}'",
test_fn
);

let opt = Output::compute(&facts, Algorithm::DatafrogOpt, true);
assert!(
!opt.errors.is_empty(),
format!("DatafrogOpt didn't find errors for '{}'", test_fn)
"DatafrogOpt didn't find errors for '{}'",
test_fn
);
}
}
Expand Down

0 comments on commit a776332

Please sign in to comment.