Skip to content
Myr

Add test with multiple tokens in an argument

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by kimsnj · committed by David Peter · parent 34b8c0d · Browse files · 1 file+17 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+17 added−0 removed

  • other:+17 added−0 removed

1 file+17 added−0 removed

modified:src/exec/mod.rs+17 added
215 unmodified lines
216 ],217 }218 );219 }220221 #[test]222 fn tokens_multiple() {223 assert_eq!(224 CommandTemplate::new(&["cp", "{}", "{/.}.ext"]),225 CommandTemplate {226 args: vec![227 ArgumentTemplate::Text("cp".into()),228 ArgumentTemplate::Tokens(vec![Token::Placeholder]),229 ArgumentTemplate::Tokens(vec![230 Token::BasenameNoExt,231 Token::Text(".ext".into())232 ]),233 ],234 }235 );236 }237}