Add weather API bundle adapter
This commit is contained in:
@@ -15,6 +15,17 @@ func TestLoadLocationAcceptsChicagoAlias(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestLoadLocationAcceptsWeatherAPITimezones(t *testing.T) {
|
||||
tests := []string{"Stl", "CDT", "-5", "+09:30"}
|
||||
for _, tt := range tests {
|
||||
t.Run(tt, func(t *testing.T) {
|
||||
if _, err := LoadLocation(tt); err != nil {
|
||||
t.Fatalf("LoadLocation(%q) error = %v", tt, err)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
func TestParseLocalDate(t *testing.T) {
|
||||
location := time.FixedZone("Test", -5*60*60)
|
||||
got, err := ParseLocalDate("2026-05-29", location)
|
||||
|
||||
Reference in New Issue
Block a user