Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
jondot committed Nov 14, 2024
1 parent 8bc5130 commit a29d3ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion loco-new/tests/assertion/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ pub fn assert_line_regex(content: &str, expected: &str) {

// Use assert! to check the regex match and panic if it fails
assert!(
re.is_match(content),
// sanitize windows crlf
re.is_match(&content.replace('\r', "")),
"Assertion failed: The content did not match the expected string. Expected: '{expected}', \
content:\n{content}"
);
Expand Down

0 comments on commit a29d3ee

Please sign in to comment.