Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestMidnightIs12AM (0.17 sec)

  1. src/time/format_test.go

    	if got != expect {
    		t.Errorf("got %q; expect %q", got, expect)
    	}
    	got = noon.Format("03:04PM")
    	if got != expect {
    		t.Errorf("got %q; expect %q", got, expect)
    	}
    }
    
    func TestMidnightIs12AM(t *testing.T) {
    	midnight := Date(0, January, 1, 0, 0, 0, 0, UTC)
    	expect := "12:00AM"
    	got := midnight.Format("3:04PM")
    	if got != expect {
    		t.Errorf("got %q; expect %q", got, expect)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:58:29 UTC 2024
    - 36.4K bytes
    - Viewed (0)
Back to top