Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 2,905 for zero (0.11 sec)

  1. src/cmd/compile/internal/test/testdata/divbyzero_test.go

    	if got := checkDivByZero(func() { div_b(7, 0) }); !got {
    		t.Errorf("expected div by zero for b(7, 0), got no error\n")
    	}
    	if got := checkDivByZero(func() { div_b(7, 7) }); got {
    		t.Errorf("expected no error for b(7, 7), got div by zero\n")
    	}
    	if got := checkDivByZero(func() { div_a(4, nil) }); !got {
    		t.Errorf("expected div by zero for a(4, nil), got no error\n")
    	}
    	if got := checkDivByZero(func() { div_c(5) }); !got {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 23 06:40:04 UTC 2020
    - 1K bytes
    - Viewed (0)
  2. test/typeparam/mdempsky/14.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    // Zero returns the zero value of T
    func Zero[T any]() (_ T) {
    	return
    }
    
    type AnyInt[X any] int
    
    func (AnyInt[X]) M() {
    	var have interface{} = Zero[X]()
    	var want interface{} = Zero[MyInt]()
    
    	if have != want {
    		println("FAIL")
    	}
    }
    
    type I interface{ M() }
    
    type MyInt int
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 568 bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/google/BiMapRemoveTester.java

      @MapFeature.Require(SUPPORTS_REMOVE)
      @CollectionSize.Require(absent = ZERO)
      public void testRemoveKeyRemovesFromInverse() {
        getMap().remove(k0());
        expectMissing(e0());
      }
    
      @MapFeature.Require(SUPPORTS_REMOVE)
      @CollectionSize.Require(absent = ZERO)
      public void testRemoveKeyFromKeySetRemovesFromInverse() {
        getMap().keySet().remove(k0());
        expectMissing(e0());
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 3K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/testers/CollectionRetainAllTester.java

      }
    
      // retainAll(empty)
    
      @CollectionFeature.Require(SUPPORTS_REMOVE)
      @CollectionSize.Require(ZERO)
      public void testRetainAll_emptyPreviouslyEmpty() {
        expectReturnsFalse(empty);
        expectUnchanged();
      }
    
      @CollectionFeature.Require(absent = SUPPORTS_REMOVE)
      @CollectionSize.Require(ZERO)
      public void testRetainAll_emptyPreviouslyEmptyUnsupported() {
        expectReturnsFalseOrThrows(empty);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  5. src/math/const_test.go

    		t.Errorf("MaxUint should wrap around to zero: %d", v+1)
    	}
    	if v := uint8(MaxUint8); v+1 != 0 {
    		t.Errorf("MaxUint8 should wrap around to zero: %d", v+1)
    	}
    	if v := uint16(MaxUint16); v+1 != 0 {
    		t.Errorf("MaxUint16 should wrap around to zero: %d", v+1)
    	}
    	if v := uint32(MaxUint32); v+1 != 0 {
    		t.Errorf("MaxUint32 should wrap around to zero: %d", v+1)
    	}
    	if v := uint64(MaxUint64); v+1 != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 03 22:44:33 UTC 2021
    - 1.3K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/google/MultimapAsMapGetTester.java

        assertEquals(2, multimap().size());
      }
    
      @CollectionSize.Require(absent = ZERO)
      @MapFeature.Require(SUPPORTS_REMOVE)
      public void testPropagatesRemoveLastElementToMultimap() {
        Collection<V> result = multimap().asMap().get(k0());
        assertTrue(result.remove(v0()));
        assertGet(k0());
      }
    
      @CollectionSize.Require(absent = ZERO)
      @MapFeature.Require(SUPPORTS_REMOVE)
      public void testPropagatesClearToMultimap() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jan 09 20:10:38 UTC 2018
    - 5K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/resolutionstrategy/DefaultCachePolicySpec.groovy

            !expired.mustCheck
            expired.keepFor == Duration.ZERO
    
            def notExpired = cachePolicy.versionListExpiry(moduleIdentifier, versions, Duration.ofMillis(2 * SECOND))
            !notExpired.mustCheck
            notExpired.keepFor == Duration.ofMillis(DAY - 2 * SECOND)
    
            def thisBuild = cachePolicy.versionListExpiry(moduleIdentifier, versions, Duration.ZERO)
            !thisBuild.mustCheck
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Oct 30 22:04:14 UTC 2023
    - 22.3K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/testers/MapPutTester.java

      @CollectionSize.Require(absent = ZERO)
      public void testPut_unsupportedPresentExistingValue() {
        try {
          assertEquals("put(present, existingValue) should return present or throw", v0(), put(e0()));
        } catch (UnsupportedOperationException tolerated) {
        }
        expectUnchanged();
      }
    
      @MapFeature.Require(absent = SUPPORTS_PUT)
      @CollectionSize.Require(absent = ZERO)
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  9. src/crypto/aes/gcm_ppc64x.s

    	LXVD2X (HTBL)(R0), VH // Load H
    
    	VSPLTISB $-16, XC2           // 0xf0
    	VSPLTISB $1, T0              // one
    	VADDUBM  XC2, XC2, XC2       // 0xe0
    	VXOR     ZERO, ZERO, ZERO
    	VOR      XC2, T0, XC2        // 0xe1
    	VSLDOI   $15, XC2, ZERO, XC2 // 0xe1...
    	VSLDOI   $1, ZERO, T0, T1    // ...1
    	VADDUBM  XC2, XC2, XC2       // 0xc2...
    	VSPLTISB $7, T2
    	VOR      XC2, T1, XC2        // 0xc2....01
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapReplaceEntryTester.java

      }
    
      @MapFeature.Require(SUPPORTS_PUT)
      @CollectionSize.Require(absent = ZERO)
      public void testReplaceEntry_supportedPresent() {
        assertTrue(getMap().replace(k0(), v0(), v3()));
        expectReplacement(entry(k0(), v3()));
      }
    
      @MapFeature.Require(SUPPORTS_PUT)
      @CollectionSize.Require(absent = ZERO)
      public void testReplaceEntry_supportedPresentUnchanged() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 5.3K bytes
    - Viewed (0)
Back to top