Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 128 of 128 for test_equals1 (0.27 sec)

  1. guava-tests/test/com/google/common/cache/CacheBuilderSpecTest.java

            .addEqualityGroup(parse("softValues"), parse("softValues"))
            .addEqualityGroup(parse("weakValues"), parse("weakValues"))
            .addEqualityGroup(parse("recordStats"), parse("recordStats"))
            .testEquals();
      }
    
      @SuppressWarnings("ReturnValueIgnored")
      public void testMaximumWeight_withWeigher() {
        CacheBuilder<Object, Object> builder = CacheBuilder.from(parse("maximumWeight=9000"));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 19.1K bytes
    - Viewed (0)
  2. guava-testlib/test/com/google/common/testing/FreshValueGeneratorTest.java

        EqualsTester tester = new EqualsTester();
        for (int i = 0; i < instances; i++) {
          tester.addEqualityGroup(generator.generateFresh(type));
        }
        tester.testEquals();
      }
    
      private static <T> void assertEqualInstance(Class<T> type, T value) {
        FreshValueGenerator generator = new FreshValueGenerator();
        assertEquals(value, generator.generateFresh(type));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 18.4K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/net/InternetDomainNameTest.java

            .addEqualityGroup(idn("www.google.com"))
            .addEqualityGroup(UNICODE_EXAMPLE)
            .addEqualityGroup(PUNYCODE_EXAMPLE)
            .testEquals();
      }
    
      private static InternetDomainName idn(String domain) {
        return InternetDomainName.from(domain);
      }
    
      @J2ktIncompatible
      @GwtIncompatible // NullPointerTester
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/LinkedHashMultimapTest.java

        multimap.put("b", 2);
        multimap.put("a", 3);
        multimap.put("c", 4);
        LinkedHashMultimap<String, Integer> copy = LinkedHashMultimap.create(multimap);
        new EqualsTester().addEqualityGroup(multimap, copy).testEquals();
      }
    
      public void testCreateFromSizes() {
        LinkedHashMultimap<String, Integer> multimap = LinkedHashMultimap.create(20, 15);
        multimap.put("foo", 1);
        multimap.put("bar", 2);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/math/StatsTest.java

            .addEqualityGroup(new Stats(5, -5.5, 55.6, -5.55, 5.55))
            .addEqualityGroup(new Stats(5, -5.5, 55.5, -5.56, 5.55))
            .addEqualityGroup(new Stats(5, -5.5, 55.5, -5.55, 5.56))
            .testEquals();
      }
    
      public void testSerializable() {
        SerializableTester.reserializeAndAssert(MANY_VALUES_STATS_ITERABLE);
      }
    
      public void testToString() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/ImmutableSetMultimapTest.java

                    .put("foo", 1)
                    .build())
            .addEqualityGroup(
                ImmutableSetMultimap.<String, Integer>builder().put("bar", 2).put("foo", 3).build())
            .testEquals();
      }
    
      public void testOf() {
        assertMultimapEquals(ImmutableSetMultimap.of("one", 1), "one", 1);
        assertMultimapEquals(ImmutableSetMultimap.of("one", 1, "two", 2), "one", 1, "two", 2);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/hash/HashTestUtils.java

                hashFunction.newHasher().putUnencodedChars("ab").putChar('c').hash(),
                hashFunction.newHasher().putChar('a').putChar('b').putChar('c').hash())
            .testEquals();
    
        int size = random.nextInt(2048);
        byte[] bytes = new byte[size];
        random.nextBytes(bytes);
        String string = new String(bytes, US_ASCII);
        assertEquals(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/MultimapsTest.java

        multimap.put("foo", 1);
        multimap.put("bar", 2);
        Multimap<String, Integer> multimapView = Multimaps.forMap(map);
        new EqualsTester().addEqualityGroup(multimap, multimapView).addEqualityGroup(map).testEquals();
        Multimap<String, Integer> multimap2 = HashMultimap.create();
        multimap2.put("foo", 1);
        assertFalse(multimapView.equals(multimap2));
        multimap2.put("bar", 1);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 38.4K bytes
    - Viewed (0)
Back to top