Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestBadLocationErrMsg (0.13 sec)

  1. 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)
Back to top