Skip to content

Commit

Permalink
add test to make coveralls happy.
Browse files Browse the repository at this point in the history
  • Loading branch information
zensh committed Mar 9, 2019
1 parent 74e8f1c commit 1e3d207
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions rrule_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3608,6 +3608,14 @@ func TestUntil(t *testing.T) {
if !timesEqual(v1, v2) {
t.Errorf("get %v, want %v", v1, v2)
}

r3, _ := NewRRule(ROption{Freq: YEARLY,
Dtstart: time.Date(2000, 9, 2, 0, 0, 0, 0, time.UTC)})
r3.Until(time.Date(MAXYEAR+100, 9, 2, 0, 0, 0, 0, time.UTC))
v3 := r3.All()
if len(v3) != MAXYEAR-1999 {
t.Errorf("get %v, want %v", len(v3), MAXYEAR-1999)
}
}

func TestMaxYear(t *testing.T) {
Expand Down

0 comments on commit 1e3d207

Please sign in to comment.