Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for Positive (0.34 sec)

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

    			positive, _, num, denom, suffix, err := parseQuantityString(item.input)
    			if err != nil {
    				t.Errorf("%v: unexpected error: %v", item.input, err)
    				continue
    			}
    			if got.Sign() >= 0 && !positive || got.Sign() < 0 && positive {
    				t.Errorf("%v: positive was incorrect: %t", item.input, positive)
    				continue
    			}
    			var value string
    			if !positive {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 49.4K bytes
    - Viewed (0)
  2. src/time/time.go

    //
    // The presentation computations - year, month, minute, and so on - all
    // rely heavily on division and modulus by positive constants. For
    // calendrical calculations we want these divisions to round down, even
    // for negative values, so that the remainder is always positive, but
    // Go's division (like most hardware division instructions) rounds to
    // zero. We can still do those computations and then adjust the result
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 50.7K bytes
    - Viewed (0)
  3. src/math/big/int_test.go

    }
    
    func TestMul(t *testing.T) {
    	if err := quick.Check(checkMul, nil); err != nil {
    		t.Error(err)
    	}
    }
    
    var mulRangesZ = []struct {
    	a, b int64
    	prod string
    }{
    	// entirely positive ranges are covered by mulRangesN
    	{-1, 1, "0"},
    	{-2, -1, "2"},
    	{-3, -2, "6"},
    	{-3, -1, "-6"},
    	{1, 3, "6"},
    	{-10, -10, "-10"},
    	{0, -1, "1"},                      // empty range
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 58.5K bytes
    - Viewed (0)
  4. src/time/time_test.go

    	loc, err := LoadLocation("Etc/GMT+1")
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	// The tzdata name Etc/GMT+1 uses "east is negative",
    	// but Go and most other systems use "east is positive".
    	// So GMT+1 corresponds to -3600 in the Go zone, not +3600.
    	name, offset := Now().In(loc).Zone()
    	// The zone abbreviation is "-01" since tzdata-2016g, and "GMT+1"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:13:47 UTC 2024
    - 56.5K bytes
    - Viewed (0)
  5. src/crypto/x509/x509.go

    	// RFC 5280 Section 4.1.2.2: serial number must positive
    	//
    	// We _should_ also restrict serials to <= 20 octets, but it turns out a lot of people
    	// get this wrong, in part because the encoding can itself alter the length of the
    	// serial. For now we accept these non-conformant serials.
    	if template.SerialNumber.Sign() == -1 {
    		return nil, errors.New("x509: serial number must be positive")
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 09:20:15 UTC 2024
    - 82K bytes
    - Viewed (0)
  6. src/cmd/vendor/github.com/ianlancetaylor/demangle/demangle.go

    		a = &Friend{Name: a}
    	}
    
    	return a, isCast
    }
    
    // sourceName parses:
    //
    //	<source-name> ::= <(positive length) number> <identifier>
    //	identifier ::= <(unqualified source code identifier)>
    func (st *state) sourceName() AST {
    	val := st.number()
    	if val <= 0 {
    		st.fail("expected positive number")
    	}
    	if len(st.str) < val {
    		st.fail("not enough characters for identifier")
    	}
    	id := st.str[:val]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 94.1K bytes
    - Viewed (0)
  7. cmd/kube-controller-manager/app/options/options_test.go

    	if err != nil {
    		t.Errorf("expected no error, error found %+v", err)
    	}
    
    	opts.EndpointSliceController.MaxEndpointsPerSlice = 1001 // max endpoints per slice should be a positive integer <= 1000
    
    	if err := opts.Validate([]string{"*"}, []string{""}, nil); err == nil {
    		t.Error("expected error, no error found")
    	}
    }
    
    func TestControllerManagerAliases(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 02:59:09 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/_gen/PPC64.rules

    (MOVHZreg y:(ANDconst [c] _)) && uint64(c) <= 0xFFFF => y
    (MOVWZreg y:(ANDconst [c] _)) && uint64(c) <= 0xFFFFFFFF => y
    (MOVWZreg y:(AND (MOVDconst [c]) _)) && uint64(c) <= 0xFFFFFFFF => y
    
    // sign extend of small-positive and => small-positive-and
    (MOVBreg y:(ANDconst [c] _)) && uint64(c) <= 0x7F => y
    (MOVHreg y:(ANDconst [c] _)) && uint64(c) <= 0x7FFF => y
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 53.2K bytes
    - Viewed (0)
  9. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/AbstractGradleExecuter.java

            Preconditions.checkState(expectedGenericDeprecationWarnings == 0, "expected deprecation count is already set for this execution");
            Preconditions.checkArgument(count > 0, "expected deprecation count must be positive");
            expectedGenericDeprecationWarnings = count;
            return this;
        }
    
        @Override
        public GradleExecuter expectDeprecationWarning(ExpectedDeprecationWarning warning) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  10. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelValidator.java

         *
         * @param first the first version.
         * @param second the second version.
         * @return negative if the first version is newer than the second version, zero if they are the same or positive if
         * the second version is the newer.
         */
        private static int compareModelVersions(String first, String second) {
            // we use a dedicated comparator because we control our model version scheme.
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Jun 10 11:04:53 UTC 2024
    - 73.9K bytes
    - Viewed (0)
Back to top