- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for TestSub (0.09 sec)
-
staging/src/k8s.io/apimachinery/pkg/api/resource/quantity_test.go
q.MarshalJSON() } func TestDeepCopy(t *testing.T) { q := NewQuantity(5, DecimalSI) c := q.DeepCopy() c.Set(6) if q.Value() == 6 { t.Errorf("Copy didn't") } } func TestSub(t *testing.T) { tests := []struct { a Quantity b Quantity expected Quantity }{ {decQuantity(10, 0, DecimalSI), decQuantity(1, 1, DecimalSI), decQuantity(0, 0, DecimalSI)},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 21:48:10 UTC 2024 - 49.4K bytes - Viewed (0) -
src/time/time_test.go
{Date(2311, 11, 26, 02, 16, 47, 63535996, UTC), Date(2019, 8, 16, 2, 29, 30, 268436582, UTC), 9223372036795099414}, {MinMonoTime, MaxMonoTime, minDuration}, {MaxMonoTime, MinMonoTime, maxDuration}, } func TestSub(t *testing.T) { for i, st := range subTests { got := st.t.Sub(st.u) if got != st.d { t.Errorf("#%d: Sub(%v, %v): got %v; want %v", i, st.t, st.u, got, st.d) } } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:13:47 UTC 2024 - 56.5K bytes - Viewed (0)