Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 312 for negatives (0.18 sec)

  1. staging/src/k8s.io/apiserver/pkg/storage/cacher/time_budget_test.go

    	// we didn't advanced on time yet
    	budget.returnUnused(budget.refresh)
    	if res := budget.takeAvailable(); res != budget.refresh {
    		t.Errorf("Expected: %v, got: %v", budget.refresh, res)
    	}
    
    	// return a negative value to the budget
    	// we didn't advanced on time yet
    	budget.returnUnused(-time.Duration(50))
    	if res := budget.takeAvailable(); res != time.Duration(0) {
    		t.Errorf("Expected: %v, got: %v", time.Duration(0), res)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 15 09:52:18 UTC 2021
    - 2.8K bytes
    - Viewed (0)
  2. src/main/webapp/js/admin/plugins/form-validator/html5.js

    (j="0"),i||(i="9007199254740992"),k||(k="1"),h["data-validation-allowing"]="range["+j+";"+i+"]",0!==j.indexOf("-")&&0!==i.indexOf("-")||(h["data-validation-allowing"]+=",negative"),(j.indexOf(".")>-1||i.indexOf(".")>-1||k.indexOf(".")>-1)&&(h["data-validation-allowing"]+=",float")):h["data-validation-allowing"]+=",float,negative"}if(e.attr("pattern")&&(b.push("custom"),h["data-validation-regexp"]=e.attr("pattern")),e.attr("maxlength")&&(b.push("length"),h["data-validation-length"]="max"+e.attr("...
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Mon Jan 01 05:12:47 UTC 2018
    - 2.6K bytes
    - Viewed (0)
  3. test/fixedbugs/bug338.go

    // Issue 1787.
    
    package main
    
    import "unsafe"
    
    const x = unsafe.Sizeof([8]byte{})
    
    func main() {
    	var b [x]int
    	_ = b
    }
    
    /*
    bug338.go:14: array bound must be non-negative
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 346 bytes
    - Viewed (0)
  4. src/net/tcpsockopt_solaris.go

    		count = defaultTCPKeepAliveCount
    	}
    	// TCP_KEEPINTVL and TCP_KEEPCNT are not available on Solaris
    	// prior to 11.4, so it's pointless to "leave it unchanged"
    	// with negative value for only one of them. On the other hand,
    	// setting both to negative values should pragmatically leave the
    	// TCP_KEEPALIVE_ABORT_THRESHOLD unchanged.
    	abortIdle := int(roundDurationUp(interval, time.Millisecond)) * count
    	if abortIdle < 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 03:10:07 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  5. src/crypto/x509/pkcs1.go

    		return nil, errors.New("x509: unsupported private key version")
    	}
    
    	if priv.N.Sign() <= 0 || priv.D.Sign() <= 0 || priv.P.Sign() <= 0 || priv.Q.Sign() <= 0 {
    		return nil, errors.New("x509: private key contains zero or negative value")
    	}
    
    	key := new(rsa.PrivateKey)
    	key.PublicKey = rsa.PublicKey{
    		E: priv.E,
    		N: priv.N,
    	}
    
    	key.D = priv.D
    	key.Primes = make([]*big.Int, 2+len(priv.AdditionalPrimes))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 17:09:47 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  6. src/slices/example_test.go

    	hasNegative := slices.ContainsFunc(numbers, func(n int) bool {
    		return n < 0
    	})
    	fmt.Println("Has a negative:", hasNegative)
    	hasOdd := slices.ContainsFunc(numbers, func(n int) bool {
    		return n%2 != 0
    	})
    	fmt.Println("Has an odd number:", hasOdd)
    	// Output:
    	// Has a negative: true
    	// Has an odd number: false
    }
    
    func ExampleDelete() {
    	letters := []string{"a", "b", "c", "d", "e"}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 17:28:50 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  7. platforms/core-runtime/time/src/main/java/org/gradle/internal/time/TimeFormatting.java

            }
    
            StringBuilder result = new StringBuilder();
    
            // Whereas it doesn't make sense to pass negative values to this method,
            // the duration passed on call sited is often a result of some math, what is not guarantees positive-values-only.
            // So let's make an output more predictable in accidental negative-values scenarios.
            if (duration < 0) {
                result.append("-");
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 20:20:17 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  8. src/net/http/transfer_test.go

    			limitedReader:  true,
    			expectedReader: fileType,
    		},
    		{
    			name:           "file, non-chunked, negative size",
    			method:         "PUT",
    			bodyFunc:       newFileFunc,
    			contentLength:  -1,
    			expectedReader: fileType,
    		},
    		{
    			name:           "file, non-chunked, CONNECT, negative size",
    			method:         "CONNECT",
    			bodyFunc:       newFileFunc,
    			contentLength:  -1,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 23:16:28 UTC 2023
    - 9.1K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/google/MultisetSetCountConditionallyTester.java

      }
    
      private void assertSetCountNegativeOldCount() {
        try {
          getMultiset().setCount(e3(), -1, 1);
          fail("calling setCount() with a negative oldCount should throw IllegalArgumentException");
        } catch (IllegalArgumentException expected) {
        }
      }
    
      // Negative oldCount.
    
      @CollectionFeature.Require(SUPPORTS_ADD)
      public void testSetCountConditional_negativeOldCount_addSupported() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 21 15:08:35 UTC 2022
    - 3.9K bytes
    - Viewed (0)
  10. test/fixedbugs/bug016.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    func main() {
    	var i int = 100
    	i = i << -3 // ERROR "overflows|negative"
    }
    
    /*
    ixedbugs/bug016.go:7: overflow converting constant to <uint32>UINT32
    fixedbugs/bug016.go:7: illegal types for operand: AS
    	(<int32>INT32)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 04:48:57 UTC 2012
    - 410 bytes
    - Viewed (0)
Back to top