From 81a3af0630bf43931862f117b8e30d1989a7aa45 Mon Sep 17 00:00:00 2001 From: Fredrik Meringdal Date: Fri, 16 Oct 2020 00:01:28 +0200 Subject: many tests passing --- src/iter.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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(v: &Vec) -> 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) -- cgit v1.2.3