Skip to content

Commit

Permalink
Make test_testdata_examples() output readable
Browse files Browse the repository at this point in the history
  • Loading branch information
walles committed Dec 20, 2020
1 parent 70ee750 commit 84823f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.rs
Expand Up @@ -522,7 +522,9 @@ mod tests {
let expected_result = fs::read_to_string(expected_path).unwrap();

// Assert that the highlighting output matches the contents of .riff-output
assert_eq!(actual_result, expected_result);
let actual_lines: Vec<&str> = actual_result.split('\n').collect();
let expected_lines: Vec<&str> = expected_result.split('\n').collect();
assert_eq!(actual_lines, expected_lines);
}
}
}

0 comments on commit 84823f5

Please sign in to comment.