1
0
mirror of https://github.com/lise-henry/crowbook synced 2024-09-22 17:31:57 +02:00
crowbook/tests/test_helper.rs

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));
}
}