Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for 12Mi (0.03 sec)

  1. staging/src/k8s.io/apiserver/pkg/cel/library/quantity_test.go

    func TestQuantity(t *testing.T) {
    	twelveMi := resource.MustParse("12Mi")
    	trueVal := types.Bool(true)
    	falseVal := types.Bool(false)
    
    	cases := []struct {
    		name               string
    		expr               string
    		expectValue        ref.Val
    		expectedCompileErr []string
    		expectedRuntimeErr string
    	}{
    		{
    			name:        "parse",
    			expr:        `quantity("12Mi")`,
    			expectValue: apiservercel.Quantity{Quantity: &twelveMi},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 17:22:44 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  2. src/cmd/gofmt/testdata/go2numbers.golden

    	_ = 0x_dead_cafe.p-10
    	_ = 0x12_34.p1_2_3
    	_ = 0x1_2_3_4.p-1_2_3
    
    	// imaginaries
    	_ = 0i
    	_ = 0i
    	_ = 8i
    	_ = 0i
    	_ = 123i
    	_ = 123i
    	_ = 56789i
    	_ = 1234i
    	_ = 1234567i
    
    	_ = 0i
    	_ = 0i
    	_ = 8i
    	_ = 0i
    	_ = 123i
    	_ = 123i
    	_ = 56_789i
    	_ = 1_234i
    	_ = 1_234_567i
    
    	_ = 0.i
    	_ = 123.i
    	_ = 0123.i
    	_ = 000123.i
    
    	_ = 0e0i
    	_ = 123e0i
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 21 17:24:29 UTC 2019
    - 1.9K bytes
    - Viewed (0)
  3. src/go/printer/testdata/go2numbers.norm

    	_	= 0x_dead_cafe.p-10
    	_	= 0x12_34.p1_2_3
    	_	= 0x1_2_3_4.p-1_2_3
    
    	// imaginaries
    	_	= 0i
    	_	= 0i
    	_	= 8i
    	_	= 0i
    	_	= 123i
    	_	= 123i
    	_	= 56789i
    	_	= 1234i
    	_	= 1234567i
    
    	_	= 0i
    	_	= 0i
    	_	= 8i
    	_	= 0i
    	_	= 123i
    	_	= 123i
    	_	= 56_789i
    	_	= 1_234i
    	_	= 1_234_567i
    
    	_	= 0.i
    	_	= 123.i
    	_	= 0123.i
    	_	= 000123.i
    
    	_	= 0e0i
    	_	= 123e0i
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 17 02:15:01 UTC 2020
    - 1.9K bytes
    - Viewed (0)
  4. src/strconv/atoc_test.go

    		{"+0e-0+0e-0i", 0, nil},
    		{"0e+0+0e+0i", 0, nil},
    		{"-0e+0-0e+0i", 0, nil},
    
    		// Regular non-zeroes
    		{"0.1", 0.1, nil},
    		{"0.1i", 0 + 0.1i, nil},
    		{"0.123", 0.123, nil},
    		{"0.123i", 0 + 0.123i, nil},
    		{"0.123+0.123i", 0.123 + 0.123i, nil},
    		{"99", 99, nil},
    		{"+99", 99, nil},
    		{"-99", -99, nil},
    		{"+1i", 1i, nil},
    		{"-1i", -1i, nil},
    		{"+3+1i", 3 + 1i, nil},
    		{"30+3i", 30 + 3i, nil},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 03 23:05:51 UTC 2020
    - 6.8K bytes
    - Viewed (0)
  5. src/internal/types/testdata/check/literals.go

    	assert(0X_dead_cafe.p-10 == 0xdeadcafe.p-10)
    	assert(0x12_34.P1_2_3 == 0x1234.p123)
    
    	assert(1_234i == 1234i)
    	assert(1_234_567i == 1234567i)
    
    	assert(0.i == 0i)
    	assert(123.i == 123i)
    	assert(0123.i == 123i)
    
    	assert(0.e+1i == 0i)
    	assert(123.E-1_0i == 123e-10i)
    	assert(01_23.e123i == 123e123i)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 02 02:58:32 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  6. src/go/format/format_test.go

    // Test that it is so even when numbers are normalized.
    func TestNodeNoModify(t *testing.T) {
    	const (
    		src    = "package p\n\nconst _ = 0000000123i\n"
    		golden = "package p\n\nconst _ = 123i\n"
    	)
    
    	fset := token.NewFileSet()
    	file, err := parser.ParseFile(fset, "", src, parser.ParseComments)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	// Capture original address and value of a BasicLit node
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 20 03:54:46 UTC 2021
    - 4.5K bytes
    - Viewed (0)
  7. test/typeparam/issue48191.go

    			p0 = pi64_1
    			m5 = map[G1]chan bool{(p2.i8_0 + i8_1 + i8_1 ^ i8_1) * p2.i8_0 / p2.i8_0: m4[p2.i8_0>><-ch2]}
    			return (2.65i - 31.18i) * func(byte, byte) complex128 {
    				return 13.12i - 32.90i + (44.15i - 70.53i - (87.16i*92.67i + (24.18i - 9.13i))) + (func(G1, int16) complex128 {
    					return 55.80i
    				}(G1(30), int16(80)) + 8.48i*79.18i + (37.30i*73.81i + (21.01i - 76.30i)) + func(G3, G2) complex128 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 9.7K bytes
    - Viewed (0)
Back to top