Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestParseQuantityString (0.25 sec)

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

    		if result := q1.Cmp(q2); result != testCase.expect {
    			t.Errorf("X: %v, Y: %v, Expected: %v, Actual: %v", testCase.x, testCase.y, testCase.expect, result)
    		}
    	}
    }
    
    func TestParseQuantityString(t *testing.T) {
    	table := []struct {
    		input              string
    		positive           bool
    		value              string
    		num, denom, suffix string
    	}{
    		{"0.025Ti", true, "0.025", "0", "025", "Ti"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 49.4K bytes
    - Viewed (0)
Back to top