summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Sago <ogham@bsago.me>2019-07-15 03:37:05 +0100
committerBenjamin Sago <ogham@bsago.me>2019-07-15 03:37:05 +0100
commit9e1200f9b73ca97a4b62298bf787fdb6d4827351 (patch)
treec6fe3f8d960216486f8191756451bb3216c16029
parentfaed8f9b82557601f10fa5c616e4ef9c14e5f662 (diff)
Fix failing tests
-rw-r--r--src/options/view.rs8
-rw-r--r--xtests/error_lt2
-rw-r--r--xtests/error_ltr2
-rw-r--r--xtests/error_value2
4 files changed, 7 insertions, 7 deletions
diff --git a/src/options/view.rs b/src/options/view.rs
index 1cf2472..87e65d1 100644
--- a/src/options/view.rs
+++ b/src/options/view.rs
@@ -518,7 +518,7 @@ mod test {
test!(modified: TimeTypes <- ["--modified"]; Both => Ok(TimeTypes { modified: true, changed: false, accessed: false, created: false }));
test!(m: TimeTypes <- ["-m"]; Both => Ok(TimeTypes { modified: true, changed: false, accessed: false, created: false }));
test!(time_mod: TimeTypes <- ["--time=modified"]; Both => Ok(TimeTypes { modified: true, changed: false, accessed: false, created: false }));
- test!(time_m: TimeTypes <- ["-tmod"]; Both => Ok(TimeTypes { modified: true, changed: false, accessed: false, created: false }));
+ test!(t_m: TimeTypes <- ["-tmod"]; Both => Ok(TimeTypes { modified: true, changed: false, accessed: false, created: false }));
// Changed
#[cfg(target_family = "unix")]
@@ -526,7 +526,7 @@ mod test {
#[cfg(target_family = "unix")]
test!(time_ch: TimeTypes <- ["--time=changed"]; Both => Ok(TimeTypes { modified: false, changed: true, accessed: false, created: false }));
#[cfg(target_family = "unix")]
- test!(time_c: TimeTypes <- ["-t", "ch"]; Both => Ok(TimeTypes { modified: false, changed: true, accessed: false, created: false }));
+ test!(t_ch: TimeTypes <- ["-t", "ch"]; Both => Ok(TimeTypes { modified: false, changed: true, accessed: false, created: false }));
// Accessed
test!(acc: TimeTypes <- ["--accessed"]; Both => Ok(TimeTypes { modified: false, changed: false, accessed: true, created: false }));
@@ -544,7 +544,7 @@ mod test {
#[cfg(not(target_os = "linux"))]
test!(time_cr: TimeTypes <- ["--time=created"]; Both => Ok(TimeTypes { modified: false, changed: false, accessed: false, created: true }));
#[cfg(not(target_os = "linux"))]
- test!(time_c: TimeTypes <- ["-tcr"]; Both => Ok(TimeTypes { modified: false, changed: false, accessed: false, created: true }));
+ test!(t_cr: TimeTypes <- ["-tcr"]; Both => Ok(TimeTypes { modified: false, changed: false, accessed: false, created: true }));
// Multiples
test!(time_uu: TimeTypes <- ["-u", "--modified"]; Both => Ok(TimeTypes { modified: true, changed: false, accessed: true, created: false }));
@@ -552,7 +552,7 @@ mod test {
// Errors
test!(time_tea: TimeTypes <- ["--time=tea"]; Both => err Misfire::BadArgument(&flags::TIME, OsString::from("tea")));
- test!(time_ea: TimeTypes <- ["-tea"]; Both => err Misfire::BadArgument(&flags::TIME, OsString::from("ea")));
+ test!(t_ea: TimeTypes <- ["-tea"]; Both => err Misfire::BadArgument(&flags::TIME, OsString::from("ea")));
// Overriding
test!(overridden: TimeTypes <- ["-tcr", "-tmod"]; Last => Ok(TimeTypes { modified: true, changed: false, accessed: false, created: false }));
diff --git a/xtests/error_lt b/xtests/error_lt
index 33f239a..b7bb341 100644
--- a/xtests/error_lt
+++ b/xtests/error_lt
@@ -1,2 +1,2 @@
-Flag -t needs a value (choices: modified, accessed, created)
+Flag -t needs a value (choices: modified, changed, accessed, created)
To sort newest files last, try "--sort newest", or just "-snew"
diff --git a/xtests/error_ltr b/xtests/error_ltr
index b2f3c54..6f8cfb2 100644
--- a/xtests/error_ltr
+++ b/xtests/error_ltr
@@ -1,2 +1,2 @@
-Option --time (-t) has no "r" setting (choices: modified, accessed, created)
+Option --time (-t) has no "r" setting (choices: modified, changed, accessed, created)
To sort oldest files last, try "--sort oldest", or just "-sold"
diff --git a/xtests/error_value b/xtests/error_value
index bda48bc..3125de3 100644
--- a/xtests/error_value
+++ b/xtests/error_value
@@ -1 +1 @@
-Flag --time needs a value (choices: modified, accessed, created)
+Flag --time needs a value (choices: modified, changed, accessed, created)