Skip to content

Commit

Permalink
➕ test for every month byweekday
Browse files Browse the repository at this point in the history
  • Loading branch information
skillcoder committed Nov 30, 2020
1 parent 6baeb7d commit 13747df
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions humanize_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 13747df

Please sign in to comment.