use a s!(..) shorthand in CLI tests

This commit is contained in:
Dustin J. Mitchell
2020-12-24 21:14:20 +00:00
parent 7e906ced22
commit 922e71cd4d
12 changed files with 65 additions and 69 deletions

View File

@@ -24,3 +24,9 @@ macro_rules! set(
}
};
);
/// Create a String from an &str; just a testing shorthand
#[cfg(test)]
macro_rules! s(
{ $s:expr } => { $s.to_owned() };
);