// Ensure that `logs_assert` works as intended (with a function)
Ensure that `logs_assert` works as intended (with a function)
Ensure that ` logs_assert ` works as intended ( with a function )
fn assert_fn(lines: &[&str]) -> Result<(), String> {
            match lines.iter().filter(|line| line.contains("CountMe")).count() {
                2 => Ok(()),
                n => Err(format!("Count should be 2, but was {}", n)),
            }
        }
fn assert_fn ( lines : & [ & str ] ) -> Result < ( ) , String > { match lines . iter ( ) . filter ( | line | line . contains ( " " ) ) . count ( ) { 2 => Ok ( ( ) ) , n => Err ( format ! ( " " n ) ) , } }
Ensure that `logs_assert` works as intended (with a function)
Ensure that ` logs_assert ` works as intended ( with a function )
lines
&[&str]