- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestBadLocationErrMsg (4.49 sec)
-
src/time/zoneinfo_test.go
if zoneinfo := time.ZoneinfoForTesting(); testZoneinfo != *zoneinfo { t.Errorf("zoneinfo does not match env variable: got %q want %q", *zoneinfo, testZoneinfo) } } func TestBadLocationErrMsg(t *testing.T) { time.ResetZoneinfoForTesting() loc := "Asia/SomethingNotExist" want := errors.New("unknown time zone " + loc) _, err := time.LoadLocation(loc) if err.Error() != want.Error() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 13 17:06:56 UTC 2023 - 9.9K bytes - Viewed (0)