async fn helper<B: AsRef<[u8]>>(
    expected: B,
    source: &str,
) -> Result<(), Box<dyn std::error::Error>> {
    let source = assuo::models::try_parse(source)?;
    let result = do_patch(source).await?;
    assert_eq!(expected.as_ref(), result.as_slice());
    Ok(())
}
// == CODE SAMPLE TESTS ==
// if there is an assuo config file on the documentation, it should be copied here to ensure it works.
// old tests shouldn't get removed (unless there is a `major` version upgrade) to ensure no regressions.
CODE SAMPLE TESTS
if there is an assuo config file on the documentation, it should be copied here to ensure it works.
old tests shouldn't get removed (unless there is a `major` version upgrade) to ensure no regressions.
CODE SAMPLE TESTS if there is an assuo config file on the documentation it should be copied here to ensure it works . old tests shouldn ' t get removed ( unless there is a ` major ` version upgrade ) to ensure no regressions .
async fn helper<B: AsRef<[u8]>>(
    expected: B,
    source: &str,
) -> Result<(), Box<dyn std::error::Error>> {
    let source = assuo::models::try_parse(source)?;
    let result = do_patch(source).await?;
    assert_eq!(expected.as_ref(), result.as_slice());
    Ok(())
}
async fn helper < B : AsRef < [ u8 ] > > ( expected : B , source : & str , ) -> Result < ( ) , Box < dyn std :: error :: Error > > { let source = assuo :: models :: try_parse ( source ) ? ; let result = do_patch ( source ) . await ? ; assert_eq ! ( expected as_ref ( ) result as_slice ( ) ) ; Ok ( ( ) ) }
CODE SAMPLE TESTS
if there is an assuo config file on the documentation, it should be copied here to ensure it works.
CODE SAMPLE TESTS if there is an assuo config file on the documentation it should be copied here to ensure it works .
expected
B
source
&str
expected
B
source
&str