func TestCombineZeroOrOne(t *testing.T) { r := intRecurring(5) if recurring.Combine() != recurring.Nil() { t.Error("Expect combining no recurrings to be nil recurring.") } if recurring.Combine(r) != r { t.Error("Expected combine of single recurring to be that recurring.") } }
func TestCombine2(t *testing.T) { r := recurring.Combine(recurring.Nil(), recurring.Nil()) verifyTimes( t, r.ForTime(kNow)) }