- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestDetectOverflowScale (0.22 sec)
-
staging/src/k8s.io/apimachinery/pkg/api/resource/math_test.go
} // multiplication is commutative d, ok2 := int64Multiply(test.b, test.a) if c != d || ok != ok2 { t.Errorf("%v: not commutative: %d %t", test, d, ok2) } } } func TestDetectOverflowScale(t *testing.T) { for _, a := range []int64{0, -1, 1, 10, -10, mostPositive, mostNegative, -mostPositive} { for _, b := range []int64{1, 2, 10, 100, 1000, mostPositive} { expect, expectOk := int64Multiply(a, b)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Jan 29 20:41:44 UTC 2017 - 5.1K bytes - Viewed (0)