fn assert_eq_multiline(left: &str, right: &str) {
        let l = left.split('\n').map(|line| line.trim_right())
            .collect::<Vec<_>>()
            .join("\n");
        let r = right.split('\n').map(|line| line.trim_right())
            .collect::<Vec<_>>()
            .join("\n");

        assert_eq!(l, r);
    }
/// Compare strings after removing trailing whitespaces from all lines
Compare strings after removing trailing whitespaces from all lines
Compare strings after removing trailing whitespaces from all lines
fn assert_eq_multiline(left: &str, right: &str) {
        let l = left.split('\n').map(|line| line.trim_right())
            .collect::<Vec<_>>()
            .join("\n");
        let r = right.split('\n').map(|line| line.trim_right())
            .collect::<Vec<_>>()
            .join("\n");
        assert_eq!(l, r);
    }
fn assert_eq_multiline ( left : & str , right : & str ) { let l = left . split ( '\n' ) . map ( | line | line . trim_right ( ) ) . collect :: < Vec < _ > > ( ) . join ( " \n " ) ; let r = right . split ( '\n' ) . map ( | line | line . trim_right ( ) ) . collect :: < Vec < _ > > ( ) . join ( " \n " ) ; assert_eq ! ( l r ) ; }
Compare strings after removing trailing whitespaces from all lines
Compare strings after removing trailing whitespaces from all lines
left
&str
right
&str
left
&str
right
&str