aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel <kingdread@gmx.de>2020-05-14 15:35:35 +0200
committerDaniel <kingdread@gmx.de>2020-05-14 15:35:35 +0200
commita5e326bdd9b8c751653047bc28e34ded3e340431 (patch)
treeac1aeb5dcf64e4c03904c6b53bcd4bbe1d51804f /src
parent57b74f50e59a3fab2d74bbb6165d48ce3e6e2049 (diff)
downloadraidgrep-a5e326bdd9b8c751653047bc28e34ded3e340431.tar.gz
raidgrep-a5e326bdd9b8c751653047bc28e34ded3e340431.tar.bz2
raidgrep-a5e326bdd9b8c751653047bc28e34ded3e340431.zip
fix tests
We changed the descending prefix to be ~ earlier, so now we need to adjust the tests as well.
Diffstat (limited to 'src')
-rw-r--r--src/output/sorting.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/output/sorting.rs b/src/output/sorting.rs
index 32ebc6c..ef00123 100644
--- a/src/output/sorting.rs
+++ b/src/output/sorting.rs
@@ -138,7 +138,7 @@ mod tests {
assert_eq!("foobar".parse::<Component>(), Err(InvalidComponent));
assert_eq!(
- "-date".parse(),
+ "~date".parse(),
Ok(Component::Reverse(Box::new(Component::Date)))
);
}
@@ -149,7 +149,7 @@ mod tests {
assert_eq!("date".parse(), Ok(Sorting::new(vec![Date])));
assert_eq!("date,boss".parse(), Ok(Sorting::new(vec![Date, Boss])));
assert_eq!(
- "date,-boss".parse(),
+ "date,~boss".parse(),
Ok(Sorting::new(vec![Date, Reverse(Box::new(Boss))]))
);
assert_eq!("".parse(), Ok(Sorting::default()));