- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 27 for testSum (0.07 sec)
-
android/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: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Feb 13 14:28:25 UTC 2024 - 17.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/math/StatsAccumulatorTest.java
.of(LONG_MANY_VALUES_MEAN); assertThat(longManyValuesAccumulatorByAddAllVarargs.mean()) .isWithin(ALLOWED_ERROR * LONG_MANY_VALUES_MEAN) .of(LONG_MANY_VALUES_MEAN); } public void testSum() { assertThat(emptyAccumulator.sum()).isEqualTo(0.0); assertThat(emptyAccumulatorByAddAllEmptyIterable.sum()).isEqualTo(0.0); assertThat(emptyAccumulatorByAddAllEmptyStats.sum()).isEqualTo(0.0);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 23 16:45:30 UTC 2024 - 36.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/math/StatsTest.java
.of(LONG_MANY_VALUES_MEAN); assertThat(LARGE_LONG_VALUES_STATS.mean()) .isWithin(ALLOWED_ERROR * Long.MAX_VALUE) .of(LARGE_LONG_VALUES_MEAN); } public void testSum() { assertThat(EMPTY_STATS_VARARGS.sum()).isEqualTo(0.0); assertThat(EMPTY_STATS_ITERABLE.sum()).isEqualTo(0.0); assertThat(ONE_VALUE_STATS.sum()).isWithin(ALLOWED_ERROR).of(ONE_VALUE);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 23 16:45:30 UTC 2024 - 33.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/math/StatsAccumulatorTest.java
.of(LONG_MANY_VALUES_MEAN); assertThat(longManyValuesAccumulatorByAddAllVarargs.mean()) .isWithin(ALLOWED_ERROR * LONG_MANY_VALUES_MEAN) .of(LONG_MANY_VALUES_MEAN); } public void testSum() { assertThat(emptyAccumulator.sum()).isEqualTo(0.0); assertThat(emptyAccumulatorByAddAllEmptyIterable.sum()).isEqualTo(0.0); assertThat(emptyAccumulatorByAddAllEmptyStats.sum()).isEqualTo(0.0);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 23 16:45:30 UTC 2024 - 36.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/EnumsTest.java
assertThat(Enums.getIfPresent(TestEnum.class, "HONDA")).isPresent(); assertThat(Enums.getIfPresent(TestEnum.class, "POODLE")).isPresent(); assertThat(Enums.getIfPresent(TestEnum.class, "CHEETO")).hasValue(TestEnum.CHEETO); assertThat(Enums.getIfPresent(TestEnum.class, "HONDA")).hasValue(TestEnum.HONDA); assertThat(Enums.getIfPresent(TestEnum.class, "POODLE")).hasValue(TestEnum.POODLE); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed May 29 16:29:37 UTC 2024 - 8.7K bytes - Viewed (0) -
cmd/kms-handlers_test.go
"Resource": ["arn:minio:kms:::non-matching-key-name"] }`, wantStatusCode: http.StatusForbidden, wantResp: []string{"AccessDenied"}, }, } for testNum, test := range tests { t.Run(fmt.Sprintf("%d %s", testNum+1, test.name), func(t *testing.T) { execKMSTest(t, test, adminTestBed) }) } } func TestKMSHandlersKeyStatus(t *testing.T) {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sun Aug 18 06:43:03 UTC 2024 - 22.3K bytes - Viewed (0) -
cmd/signature-v4-parser_test.go
} // validates the credential fields against the expected credential. func validateCredentialfields(t *testing.T, testNum int, expectedCredentials credentialHeader, actualCredential credentialHeader) { if expectedCredentials.accessKey != actualCredential.accessKey { t.Errorf("Test %d: AccessKey mismatch: Expected \"%s\", got \"%s\"", testNum, expectedCredentials.accessKey, actualCredential.accessKey) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Feb 22 06:26:06 UTC 2024 - 27.4K bytes - Viewed (0) -
callbacks/helper_test.go
"reflect" "testing" "gorm.io/gorm" "gorm.io/gorm/clause" ) func TestLoadOrStoreVisitMap(t *testing.T) { var vm visitMap var loaded bool type testM struct { Name string } t1 := testM{Name: "t1"} t2 := testM{Name: "t2"} t3 := testM{Name: "t3"} vm = make(visitMap) if loaded = loadOrStoreVisitMap(&vm, reflect.ValueOf(&t1)); loaded { t.Fatalf("loaded should be false") }
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Tue Mar 05 02:22:57 UTC 2024 - 3.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java
assertThrows(NullPointerException.class, () -> copyOf((Collection<String>) c)); } enum TestEnum { A, B, C, D } public void testCopyOf_collection_enumSet() { Collection<TestEnum> c = EnumSet.of(TestEnum.A, TestEnum.B, TestEnum.D); Set<TestEnum> set = copyOf(c); assertEquals(3, set.size()); assertEquals(c, set); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 18.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/AbstractImmutableTableTest.java
for (Table<Character, Integer, String> testInstance : getTestInstances()) { assertThrows(UnsupportedOperationException.class, () -> testInstance.clear()); } } public final void testPut() { for (Table<Character, Integer, String> testInstance : getTestInstances()) { assertThrows(UnsupportedOperationException.class, () -> testInstance.put('a', 1, "blah")); } }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Oct 15 17:36:06 UTC 2024 - 2.4K bytes - Viewed (0)