File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -341,7 +341,7 @@ impl Haml {
341341mod tests {
342342 use super :: Haml ;
343343 use crate :: extractor:: pre_processors:: pre_processor:: PreProcessor ;
344- // use pretty_assertions::assert_eq;
344+ use pretty_assertions:: assert_eq;
345345
346346 #[ test]
347347 fn test_haml_pre_processor ( ) {
@@ -425,7 +425,7 @@ mod tests {
425425 let actual = Haml :: extract_annotated ( include_bytes ! ( "./test-fixtures/haml/src-17051.haml" ) ) ;
426426 let expected = include_str ! ( "./test-fixtures/haml/dst-17051.haml" ) ;
427427
428- assert_eq ! ( actual, expected) ;
428+ assert_eq ! ( actual. replace ( " \r \n " , " \n " ) , expected. replace ( " \r \n " , " \n " ) ) ;
429429 }
430430
431431 // https://github.com/tailwindlabs/tailwindcss/issues/17813
@@ -434,7 +434,7 @@ mod tests {
434434 let actual = Haml :: extract_annotated ( include_bytes ! ( "./test-fixtures/haml/src-17813.haml" ) ) ;
435435 let expected = include_str ! ( "./test-fixtures/haml/dst-17813.haml" ) ;
436436
437- assert_eq ! ( actual, expected) ;
437+ assert_eq ! ( actual. replace ( " \r \n " , " \n " ) , expected. replace ( " \r \n " , " \n " ) ) ;
438438 }
439439
440440 #[ test]
You can’t perform that action at this time.
0 commit comments