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

mod toc;
mod escape;
mod parser;
mod html;
mod cleaner;
mod book;

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

mod toc;
mod escape;
mod parser;
mod html;
mod cleaner;
mod book;

--- 
+++ 
@@ -1,7 +1,7 @@
 /// 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));
+        panic!(format!("\nexpected:\n{:?}\nactual:\n{:?}\n", expected, actual));
     }
 }
 
Use debug printing instead of single printing when a test errors
