Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for SetScaled (0.09 sec)

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

    			t.Errorf("Round trip failed on %v", q)
    		}
    		if e, a := item.value, q2.ScaledValue(item.scale); e != a {
    			t.Errorf("Expected %v, got %v", e, a)
    		}
    		q3 := NewQuantity(0, DecimalSI)
    		q3.SetScaled(item.value, item.scale)
    		if q.Cmp(*q3) != 0 {
    			t.Errorf("Expected %v and %v to be equal", q, q3)
    		}
    	}
    }
    
    func TestScaledValue(t *testing.T) {
    	table := []struct {
    		fromScale Scale
    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