Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestQuantityParseZero (0.78 sec)

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

    	}
    
    	for _, item := range table {
    		if e, a := item.expect, item.got.Dec.String(); e != a {
    			t.Errorf("expected %v, got %v", e, a)
    		}
    	}
    }
    
    // TestQuantityParseZero ensures that when a 0 quantity is passed, its string value is 0
    func TestQuantityParseZero(t *testing.T) {
    	zero := MustParse("0")
    	if expected, actual := "0", zero.String(); expected != actual {
    		t.Errorf("Expected %v, actual %v", expected, actual)
    	}
    }
    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