Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestInt64AsCanonicalString (0.38 sec)

  1. staging/src/k8s.io/apimachinery/pkg/api/resource/amount_test.go

    				t.Errorf("%v: unexpected result: %d", test, c)
    			}
    		} else {
    			if c != test.a {
    				t.Errorf("%v: overflow multiplication mutated source: %d", test, c)
    			}
    		}
    	}
    }
    
    func TestInt64AsCanonicalString(t *testing.T) {
    	for _, test := range []struct {
    		value    int64
    		scale    Scale
    		result   string
    		exponent int32
    	}{
    		{100, 0, "100", 0},
    		{100, 1, "1", 3},
    		{100, -1, "10", 0},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 13 20:54:15 UTC 2023
    - 7K bytes
    - Viewed (0)
Back to top