Fix empty document test.

imgbot
Nathan Vegdahl 3 years ago
parent 7961a13007
commit 28627f97e9

@ -1161,11 +1161,7 @@ mod test {
#[test] #[test]
fn test_line_ending() { fn test_line_ending() {
if cfg!(windows) { assert_eq!(Document::default().text().to_string(), "");
assert_eq!(Document::default().text().to_string(), "\r\n");
} else {
assert_eq!(Document::default().text().to_string(), "\n");
}
} }
macro_rules! test_decode { macro_rules! test_decode {

Loading…
Cancel
Save