Search Options

Results per page
Sort
Preferred Languages
Advance

Results 761 - 770 of 825 for assertequal (0.09 sec)

  1. guava-tests/test/com/google/common/hash/Crc32cHashFunctionTest.java

        int actualCrc = Hashing.crc32c().hashBytes(data).asInt();
        assertEquals(
            String.format("expected: %08x, actual: %08x", expectedCrc, actualCrc),
            expectedCrc,
            actualCrc);
        int actualCrcHasher = Hashing.crc32c().newHasher().putBytes(data).hash().asInt();
        assertEquals(
            String.format("expected: %08x, actual: %08x", expectedCrc, actualCrc),
            expectedCrc,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/hash/Crc32cHashFunctionTest.java

        int actualCrc = Hashing.crc32c().hashBytes(data).asInt();
        assertEquals(
            String.format("expected: %08x, actual: %08x", expectedCrc, actualCrc),
            expectedCrc,
            actualCrc);
        int actualCrcHasher = Hashing.crc32c().newHasher().putBytes(data).hash().asInt();
        assertEquals(
            String.format("expected: %08x, actual: %08x", expectedCrc, actualCrc),
            expectedCrc,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/testers/MapForEachTester.java

      @CollectionFeature.Require(KNOWN_ORDER)
      public void testForEachKnownOrder() {
        List<Entry<K, V>> entries = new ArrayList<>();
        getMap().forEach((k, v) -> entries.add(entry(k, v)));
        assertEquals(getOrderedElements(), entries);
      }
    
      @CollectionFeature.Require(absent = KNOWN_ORDER)
      public void testForEachUnknownOrder() {
        List<Entry<K, V>> entries = new ArrayList<>();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:51:04 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/net/HttpHeadersTest.java

          Class<?> clazz,
          ImmutableBiMap<String, String> specialCases,
          ImmutableSet<String> uppercaseAcronyms)
          throws IllegalAccessException {
        for (Field field : relevantFields(clazz)) {
          assertEquals(
              upperToHttpHeaderName(field.getName(), specialCases, uppercaseAcronyms), field.get(null));
        }
      }
    
      // Visible for other tests to use
      static ImmutableSet<Field> relevantFields(Class<?> cls) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 22 21:08:08 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/net/HttpHeadersTest.java

          Class<?> clazz,
          ImmutableBiMap<String, String> specialCases,
          ImmutableSet<String> uppercaseAcronyms)
          throws IllegalAccessException {
        for (Field field : relevantFields(clazz)) {
          assertEquals(
              upperToHttpHeaderName(field.getName(), specialCases, uppercaseAcronyms), field.get(null));
        }
      }
    
      // Visible for other tests to use
      static ImmutableSet<Field> relevantFields(Class<?> cls) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 22 21:08:08 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/google/AbstractBiMapTester.java

          reversedEntries.add(reverseEntry(entry));
        }
        assertEqualIgnoringOrder(getMap().inverse().entrySet(), reversedEntries);
    
        for (Entry<K, V> entry : expected) {
          assertEquals(
              "Wrong key for value " + entry.getValue(),
              entry.getKey(),
              getMap().inverse().get(entry.getValue()));
        }
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/AtomicLongMapBasherTest.java

                  }));
        }
        threadPool.shutdown();
        assertTrue(threadPool.awaitTermination(300, SECONDS));
        long sum = 0;
        for (Future<Long> f : futures) {
          sum += f.get();
        }
        assertEquals(sum, map.get(key));
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 13 14:28:25 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/testers/ListHashCodeTester.java

      public void testHashCode() {
        int expectedHashCode = 1;
        for (E element : getOrderedElements()) {
          expectedHashCode = 31 * expectedHashCode + ((element == null) ? 0 : element.hashCode());
        }
        assertEquals(
            "A List's hashCode() should be computed from those of its elements.",
            expectedHashCode,
            getList().hashCode());
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2K bytes
    - Viewed (0)
  9. android/guava-testlib/test/com/google/common/collect/testing/FeatureSpecificTestSuiteBuilderTest.java

                .withTearDown(tearDownRunnable)
                .createTestSuite();
        TestResult result = new TestResult();
        int timesMyTesterWasRunBeforeSuite = MyTester.timesTestClassWasRun;
        test.run(result);
        assertEquals(timesMyTesterWasRunBeforeSuite + 1, MyTester.timesTestClassWasRun);
        assertTrue(setUp[0]);
        assertTrue(tearDown[0]);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 20:09:59 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  10. guava-testlib/test/com/google/common/collect/testing/features/FeatureEnumTest.java

        final Retention retentionPolicy = annotationClass.getAnnotation(Retention.class);
        assertNotNull(
            rootLocaleFormat("%s must have a @Retention annotation.", annotationClass),
            retentionPolicy);
        assertEquals(
            rootLocaleFormat("%s must have RUNTIME RetentionPolicy.", annotationClass),
            RetentionPolicy.RUNTIME,
            retentionPolicy.value());
        assertNotNull(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:09:00 UTC 2024
    - 4.3K bytes
    - Viewed (0)
Back to top