Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 69 for test_sum (0.19 sec)

  1. src/mime/multipart/multipart_test.go

    		part, err := reader.NextPart()
    		if part == nil {
    			t.Errorf("Expected a body part on text %d", testNum)
    			continue
    		}
    		if err != nil {
    			t.Errorf("Unexpected error on text %d: %v", testNum, err)
    			continue
    		}
    		written, err := io.Copy(buf, part)
    		expectEq(t, expectedBody, buf.String(), fmt.Sprintf("test %d", testNum))
    		if err != nil {
    			t.Errorf("Error copying multipart; bytes=%v, error=%v", written, err)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 06 17:36:47 UTC 2022
    - 30.4K bytes
    - Viewed (0)
  2. test/typeparam/maps.go

    	}
    	_Add(mc, map[int]int{16: 32})
    	want := map[int]int{1: 2, 2: 4, 4: 8, 8: 16, 16: 32}
    	if !_Equal(mc, want) {
    		panic(fmt.Sprintf("_Add result = %v, want %v", mc, want))
    	}
    }
    
    func TestSub() {
    	mc := _Copy(m1)
    	_Sub(mc, mc)
    	if len(mc) > 0 {
    		panic(fmt.Sprintf("_Sub(%v, %v) = %v, want empty map", m1, m1, mc))
    	}
    	mc = _Copy(m1)
    	_Sub(mc, map[int]int{1: 0})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 5.9K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/MultisetsTest.java

        Multiset<String> ms1 = HashMultiset.create(Arrays.asList("a", "b", "a"));
        Multiset<String> ms2 = HashMultiset.create();
        assertThat(Multisets.intersection(ms1, ms2)).isEmpty();
      }
    
      public void testSum() {
        Multiset<String> ms1 = HashMultiset.create(Arrays.asList("a", "b", "a"));
        Multiset<String> ms2 = HashMultiset.create(Arrays.asList("b", "c"));
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/tests/get-arithmetic-count.mlir

      %0 = "tfl.add"(%arg0, %arg1) {fused_activation_function = "NONE"} : (tensor<10x10x10xf32>, tensor<10xf32>) -> tensor<10x10x10xf32>
      func.return %0 : tensor<10x10x10xf32>
    }
    
    func.func @testSub(%arg0: tensor<10x10x10xf32>, %arg1: tensor<10x10x10xf32>) -> tensor<10x10x10xf32> {
      // CHECK: _arithmetic_count = 1000 : i64
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Dec 14 04:58:17 UTC 2022
    - 7.7K bytes
    - Viewed (0)
  5. src/crypto/tls/handshake_client_test.go

    					panic("AcceptableCAs should have been empty")
    				}
    				return new(Certificate), nil
    			}
    		},
    		"",
    		func(t *testing.T, testNum int, cs *ConnectionState) {
    			if l := len(cs.PeerCertificates); l != 0 {
    				t.Errorf("#%d: expected no certificates but got %d", testNum, l)
    			}
    		},
    	},
    	{
    		func(clientConfig, serverConfig *Config) {
    			// With TLS 1.1, the SignatureSchemes should be
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 88.7K bytes
    - Viewed (0)
  6. analysis/analysis-api-standalone/tests-gen/org/jetbrains/kotlin/analysis/api/standalone/fir/test/cases/generated/cases/symbols/FirStandaloneNormalAnalysisSourceModuleSymbolByPsiTestGenerated.java

      @Test
      @TestMetadata("dynamic.kt")
      public void testDynamic() {
        runTest("analysis/analysis-api/testData/symbols/symbolByPsi/dynamic.kt");
      }
    
      @Test
      @TestMetadata("enum.kt")
      public void testEnum() {
        runTest("analysis/analysis-api/testData/symbols/symbolByPsi/enum.kt");
      }
    
      @Test
      @TestMetadata("enumEntryFunctions.kt")
      public void testEnumEntryFunctions() {
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Fri Feb 16 12:48:24 UTC 2024
    - 15.9K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_bigger_applications/test_main_an_py39.py

        response = client.put("/items/foo", headers={"X-Token": "invalid"})
        assert response.status_code == 400, response.text
        assert response.json() == {"detail": "X-Token header invalid"}
    
    
    @needs_py39
    def test_put(client: TestClient):
        response = client.put(
            "/items/plumbus?token=jessica", headers={"X-Token": "fake-super-secret-token"}
        )
        assert response.status_code == 200, response.text
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 24.9K bytes
    - Viewed (0)
  8. analysis/analysis-api-fir/tests-gen/org/jetbrains/kotlin/analysis/api/fir/test/cases/generated/cases/symbols/FirIdeNormalAnalysisSourceModuleSymbolByPsiTestGenerated.java

      @Test
      @TestMetadata("dynamic.kt")
      public void testDynamic() {
        runTest("analysis/analysis-api/testData/symbols/symbolByPsi/dynamic.kt");
      }
    
      @Test
      @TestMetadata("enum.kt")
      public void testEnum() {
        runTest("analysis/analysis-api/testData/symbols/symbolByPsi/enum.kt");
      }
    
      @Test
      @TestMetadata("enumEntryFunctions.kt")
      public void testEnumEntryFunctions() {
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Fri Feb 16 12:48:24 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_bigger_applications/test_main_an.py

        response = client.put("/items/foo", headers={"X-Token": "invalid"})
        assert response.status_code == 400, response.text
        assert response.json() == {"detail": "X-Token header invalid"}
    
    
    def test_put(client: TestClient):
        response = client.put(
            "/items/plumbus?token=jessica", headers={"X-Token": "fake-super-secret-token"}
        )
        assert response.status_code == 200, response.text
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 24.6K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/AtomicLongMapTest.java

          map.put(new Object(), i);
        }
        assertEquals(ITERATIONS, map.size());
    
        map.clear();
        assertEquals(0, map.size());
        assertTrue(map.isEmpty());
      }
    
      public void testSum() {
        AtomicLongMap<Object> map = AtomicLongMap.create();
        long sum = 0;
        for (int i = 0; i < ITERATIONS; i++) {
          map.put(new Object(), i);
          sum += i;
        }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 13 14:28:25 UTC 2024
    - 17.4K bytes
    - Viewed (0)
Back to top