diff options
author | Fredrik Meringdal <fmeringdal@hotmail.com> | 2020-10-16 00:01:28 +0200 |
---|---|---|
committer | Fredrik Meringdal <fmeringdal@hotmail.com> | 2020-10-16 00:01:28 +0200 |
commit | 81a3af0630bf43931862f117b8e30d1989a7aa45 (patch) | |
tree | 1f2b5051aaf7f2a8832340b388409bc759c85ee1 /src | |
parent | ccd6a4f57e8eb2d1037ef7515c68ebd1b261069a (diff) | |
download | rust_rrule-81a3af0630bf43931862f117b8e30d1989a7aa45.zip |
many tests passing
Diffstat (limited to 'src')
-rw-r--r-- | src/iter.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/iter.rs b/src/iter.rs index 4923325..b9c1560 100644 --- a/src/iter.rs +++ b/src/iter.rs @@ -270,6 +270,10 @@ pub fn not_empty<T>(v: &Vec<T>) -> bool { } pub fn is_filtered(ii: &IterInfo, current_day: usize, options: &ParsedOptions) -> bool { + println!( + "Was filtered here: {}", + (not_empty(&options.byweekno) && (ii.wnomask().unwrap()[current_day]) == 0) + ); return (not_empty(&options.bymonth) && !includes(&options.bymonth, &ii.mmask().unwrap()[current_day])) || (not_empty(&options.byweekno) && (ii.wnomask().unwrap()[current_day]) == 0) |