Example #1
0
func TestAllDays_YearMonthDay(t *testing.T) {
	for day := 1; day < 64; day++ {
		year := 2029
		month := 1

		ymd := internal.NewYearMonthDay(year, month, day)
		CheckYearMonthDay(t, ymd, year, month, day)
	}
}
Example #2
0
func TestAllDates_YearMonthDay(t *testing.T) {
	for year := -9999; year <= 9999; year++ {
		month := 5
		day := 20

		ymd := internal.NewYearMonthDay(year, month, day)
		CheckYearMonthDay(t, ymd, year, month, day)
	}
}
Example #3
0
func TestAllMonths_YearMonthDay(t *testing.T) {
	for month := 1; month < 16; month++ {
		year := 1969
		day := 12

		ymd := internal.NewYearMonthDay(year, month, day)
		CheckYearMonthDay(t, ymd, year, month, day)
	}
}