You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 29, 2021. It is now read-only.
What do you think about removing the macro and adding <T: ToCommandWithArgs> Assert::command(T) where ToCommandWithArgs is a trait implemented for &[u8] as well as &str? This way, you could run Assert::command(r#"cargo run --bin whatever -- --input="Lorem ipsum" -f"#).
In the &str case we'd parse it in a clever way to split the string by whitespace while preserving quoted blocks. I'm thinking of some split_args that fulfills
What do you think about removing the macro and adding
<T: ToCommandWithArgs> Assert::command(T)whereToCommandWithArgsis a trait implemented for&[u8]as well as&str? This way, you could runAssert::command(r#"cargo run --bin whatever -- --input="Lorem ipsum" -f"#).In the
&strcase we'd parse it in a clever way to split the string by whitespace while preserving quoted blocks. I'm thinking of somesplit_argsthat fulfills(Copypasta from #22 (comment))