- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestAddToExactSecond (0.13 sec)
-
src/time/time_test.go
for _, tt := range daysInTests { di := DaysIn(Month(tt.month), tt.year) if di != tt.di { t.Errorf("got %d; expected %d for %d-%02d", di, tt.di, tt.year, tt.month) } } } func TestAddToExactSecond(t *testing.T) { // Add an amount to the current time to round it up to the next exact second. // This test checks that the nsec field still lies within the range [0, 999999999]. t1 := Now()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:13:47 UTC 2024 - 56.5K bytes - Viewed (0)