Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/mft.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/bin/mft_dump.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bin/mft_dump.rs b/src/bin/mft_dump.rs
index 628bd6c..2ebeea3 100644
--- a/src/bin/mft_dump.rs
+++ b/src/bin/mft_dump.rs
@@ -118,6 +118,12 @@ mod tests {
}
#[test]
+ fn it_works_with_two_ranges() {
+ let ranges = Ranges::from_str("1-10,20-25").unwrap();
+ assert_eq!(ranges.0, vec![1..=10, 20..=25]);
+ }
+
+ #[test]
fn it_errors_on_a_random_string() {
let ranges = Ranges::from_str("hello");
assert!(ranges.is_err())