- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestAddSubRoundTripAcrossScales (0.32 sec)
-
staging/src/k8s.io/apimachinery/pkg/api/resource/quantity_test.go
for _, j := range order { q.Sub(*NewScaledQuantity(j, Scale(k))) } if !q.IsZero() { t.Errorf("addition and subtraction did not cancel: %s", &q) } } } func TestAddSubRoundTripAcrossScales(t *testing.T) { q := Quantity{Format: DecimalSI} var order []int64 for i := 0; i < 100; i++ { j := rand.Int63() order = append(order, j) q.Add(*NewScaledQuantity(j, Scale(j%20-10)))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 21:48:10 UTC 2024 - 49.4K bytes - Viewed (0)