Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion crates/engine/src/surface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,10 @@ mod tests {
let mut seen = std::collections::HashSet::new();
let twice: Vec<_> = commands.iter().filter(|c| !seen.insert(c.id)).map(|c| c.id).collect();
assert!(twice.is_empty(), "registered twice: {twice:?}");
let (saved, current) = (include_str!("../command-surface.txt"), text(&commands));
// A Windows checkout may turn the file's line endings into CRLF; the snapshot is LF.
let saved = include_str!("../command-surface.txt").replace("\r\n", "\n");
let current = text(&commands);
let saved = saved.as_str();
let diff = differences(saved, &current);
Comment thread
giswqs marked this conversation as resolved.
Resolved
// Equal ids and keys but another text: a repeated id, or lines out of order.
assert!(
Expand Down
Loading