lets_expect_assertions 0.5.2

lets_expect assertions. This crate is internal to the lets_expect crate and should not be used directly.
Documentation
1
2
3
4
5
6
7
8
9
use lets_expect_core::assertions::{assertion_result::AssertionResult, assertion_error::AssertionError};

pub(super) fn expected_err(lines: Vec<&str>) -> AssertionResult {
    let message = lines
        .into_iter()
        .map(|line| line.to_string())
        .collect::<Vec<String>>();
    Err(AssertionError::new(message))
}