mirror of
https://github.com/Llewellynvdm/exa.git
synced 2024-11-26 22:06:26 +00:00
commit
5438f949c9
@ -272,7 +272,7 @@ mod test {
|
||||
}
|
||||
|
||||
|
||||
mod ignore_patternses {
|
||||
mod ignore_patterns {
|
||||
use super::*;
|
||||
use std::iter::FromIterator;
|
||||
use glob;
|
||||
|
@ -194,19 +194,19 @@ pub mod test {
|
||||
use std::ffi::OsString;
|
||||
|
||||
let bits = inputs.into_iter().map(|&o| os(o)).collect::<Vec<OsString>>();
|
||||
let mut rezzies = Vec::new();
|
||||
let mut result = Vec::new();
|
||||
|
||||
if strictnesses == Last || strictnesses == Both {
|
||||
let results = Args(args).parse(bits.iter(), Strictness::UseLastArguments);
|
||||
rezzies.push(get(&results.unwrap().flags));
|
||||
result.push(get(&results.unwrap().flags));
|
||||
}
|
||||
|
||||
if strictnesses == Complain || strictnesses == Both {
|
||||
let results = Args(args).parse(bits.iter(), Strictness::ComplainAboutRedundantArguments);
|
||||
rezzies.push(get(&results.unwrap().flags));
|
||||
result.push(get(&results.unwrap().flags));
|
||||
}
|
||||
|
||||
rezzies
|
||||
result
|
||||
}
|
||||
|
||||
/// Creates an `OSStr` (used in tests)
|
||||
|
Loading…
Reference in New Issue
Block a user