Sha256: ef773fe0bed7ebeb12ac0e48c388ac6a23626ed66c35d3e8682e11e755722cf7
Contents?: true
Size: 693 Bytes
Versions: 122
Compression:
Stored size: 693 Bytes
Contents
package meetup import "testing" /* API package meetup type Weekschedule WeekSchedule First WeekSchedule Second WeekSchedule Third WeekSchedule Fourth WeekSchedule Last WeekSchedule Teenth func Day(WeekSchedule, time.Weekday, time.Month, int) int */ var weekName = map[WeekSchedule]string{ First: "first", Second: "second", Third: "third", Fourth: "fourth", Teenth: "teenth", Last: "last", } func TestDay(t *testing.T) { for _, test := range testCases { res := Day(test.week, test.weekday, test.month, test.year) if res != test.expDay { t.Fatalf("For %s %s of %s 2013 got date of %d, want %d", weekName[test.week], test.weekday, test.month, res, test.expDay) } } }
Version data entries
122 entries across 122 versions & 1 rubygems