From 13747df6f92dff38f2066318eded08901a2fe020 Mon Sep 17 00:00:00 2001 From: skillcoder Date: Mon, 30 Nov 2020 20:34:05 +0300 Subject: [PATCH] :heavy_plus_sign: test for every month byweekday --- humanize_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/humanize_test.go b/humanize_test.go index 7ad1ed0..e11c95b 100644 --- a/humanize_test.go +++ b/humanize_test.go @@ -68,6 +68,13 @@ func TestHRRule_Humanize(t *testing.T) { want: "every month on the last Friday until 29 December 2024", wantErr: false, }, + { + name: "every month on Thursday until 3 December 2021", + lang: "en-US", + inputRRule: "FREQ=MONTHLY;UNTIL=20211203T160000Z;INTERVAL=1;WKST=MO;BYDAY=TH;BYSETPOS=1", + want: "every month on Thursday until 3 December 2021", + wantErr: false, + }, } bundle, err := NewI18NBundle("./l10n")