mirror of
https://github.com/lise-henry/crowbook
synced 2024-09-27 01:30:44 +02:00
8 lines
219 B
Rust
8 lines
219 B
Rust
/// Equivalent to assert_eq! but with prettier output
|
|
pub fn test_eq(actual: &str, expected: &str) {
|
|
if actual != expected {
|
|
panic!(format!("\nexpected:\n{}\nactual:\n{}\n", expected, actual));
|
|
}
|
|
}
|
|
|