mirror of
https://github.com/Llewellynvdm/exa.git
synced 2024-11-29 23:23:53 +00:00
Fix failing tests
This commit is contained in:
parent
10096d1043
commit
3242cb216a
@ -8,7 +8,6 @@ use term::dimensions;
|
|||||||
use std::ascii::AsciiExt;
|
use std::ascii::AsciiExt;
|
||||||
use std::cmp::Ordering;
|
use std::cmp::Ordering;
|
||||||
use std::fmt;
|
use std::fmt;
|
||||||
use std::slice::Iter;
|
|
||||||
|
|
||||||
use getopts;
|
use getopts;
|
||||||
use natord;
|
use natord;
|
||||||
@ -346,15 +345,15 @@ mod test {
|
|||||||
#[test]
|
#[test]
|
||||||
fn files() {
|
fn files() {
|
||||||
let opts = Options::getopts(&[ "this file".to_string(), "that file".to_string() ]).unwrap();
|
let opts = Options::getopts(&[ "this file".to_string(), "that file".to_string() ]).unwrap();
|
||||||
let args: Vec<&String> = opts.path_strings().collect();
|
let args: Vec<String> = opts.path_strs;
|
||||||
assert_eq!(args, vec![ &"this file".to_string(), &"that file".to_string() ])
|
assert_eq!(args, vec![ "this file".to_string(), "that file".to_string() ])
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn no_args() {
|
fn no_args() {
|
||||||
let opts = Options::getopts(&[]).unwrap();
|
let opts = Options::getopts(&[]).unwrap();
|
||||||
let args: Vec<&String> = opts.path_strings().collect();
|
let args: Vec<String> = opts.path_strs;
|
||||||
assert_eq!(args, vec![ &".".to_string() ])
|
assert_eq!(args, vec![ ".".to_string() ])
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
Loading…
Reference in New Issue
Block a user