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