Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 139 for test_equals (0.06 sec)

  1. guava-tests/test/com/google/common/collect/ImmutableMultisetTest.java

                ImmutableMultiset.of("a", "a", "b"))
            .addEqualityGroup(ImmutableMultiset.of("a", "b"))
            .addEqualityGroup(ImmutableMultiset.of("a", "b", "c", "d"))
            .testEquals();
      }
    
      public void testIterationOrder() {
        Collection<String> c = ImmutableMultiset.of("a", "b", "a");
        assertThat(c).containsExactly("a", "a", "b").inOrder();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 24.8K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/AbstractMapEntryTest.java

        assertEquals("null=1", entry(NK, 1).toString());
        assertEquals("foo=null", entry("foo", NV).toString());
        assertEquals("null=null", entry(NK, NV).toString());
      }
    
      public void testEquals() {
        Entry<String, Integer> foo1 = entry("foo", 1);
        // Explicitly call `equals`; `assertEquals` might return fast
        assertTrue(foo1.equals(foo1));
        assertEquals(control("foo", 1), foo1);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/net/MediaTypeTest.java

      public void testGetCharset_unsupportedCharset() {
        MediaType mediaType = MediaType.parse("text/plain; charset=utf-wtf");
        assertThrows(UnsupportedCharsetException.class, mediaType::charset);
      }
    
      public void testEquals() {
        new EqualsTester()
            .addEqualityGroup(
                MediaType.create("text", "plain"),
                MediaType.create("TEXT", "PLAIN"),
                MediaType.parse("text/plain"),
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 20.4K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/base/ConverterTest.java

        new EqualsTester()
            .addEqualityGroup(STR_TO_LONG, STR_TO_LONG.reverse().reverse())
            .addEqualityGroup(STR_TO_LONG.reverse(), STR_TO_LONG.reverse())
            .testEquals();
      }
    
      public void testReverseReverse() {
        Converter<String, Long> converter = STR_TO_LONG;
        assertEquals(converter, converter.reverse().reverse());
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/EnumBiMapTest.java

        new NullPointerTester()
            .testAllPublicInstanceMethods(
                EnumBiMap.create(ImmutableMap.of(Currency.DOLLAR, Country.CHILE)));
      }
    
      public void testEquals() {
        new EqualsTester()
            .addEqualityGroup(
                EnumBiMap.create(ImmutableMap.of(Currency.DOLLAR, Country.CANADA)),
                EnumBiMap.create(ImmutableMap.of(Currency.DOLLAR, Country.CANADA)))
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/ContiguousSetTest.java

        assertThrows(IllegalArgumentException.class, () -> ContiguousSet.closed(2L, 1L));
        assertThrows(IllegalArgumentException.class, () -> ContiguousSet.closedOpen(2L, 1L));
      }
    
      public void testEquals() {
        new EqualsTester()
            .addEqualityGroup(
                ContiguousSet.create(Range.closed(1, 3), integers()),
                ContiguousSet.closed(1, 3),
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 19.6K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/multichannel/NetworkInterfaceInfoTest.java

            assertEquals(original.getInterfaceIndex(), decoded.getInterfaceIndex());
            assertEquals(original.getCapability(), decoded.getCapability());
        }
    
        @Test
        void testEquals() {
            NetworkInterfaceInfo info1 = new NetworkInterfaceInfo(testAddress, 1000);
            info1.setInterfaceIndex(1);
    
            NetworkInterfaceInfo info2 = new NetworkInterfaceInfo(testAddress, 1000);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java

        new EqualsTester().addEqualityGroup(input, multimap).testEquals();
      }
    
      public void testCopyOfEmpty() {
        ArrayListMultimap<String, Integer> input = ArrayListMultimap.create();
        ImmutableListMultimap<String, Integer> multimap = ImmutableListMultimap.copyOf(input);
        new EqualsTester().addEqualityGroup(input, multimap).testEquals();
      }
    
      public void testCopyOfImmutableListMultimap() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 24K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/hash/BloomFilterTest.java

            .addEqualityGroup(BloomFilter.create(Funnels.unencodedCharsFunnel(), 200, 0.01))
            .addEqualityGroup(BloomFilter.create(Funnels.unencodedCharsFunnel(), 200, 0.02))
            .testEquals();
      }
    
      public void testEquals() {
        BloomFilter<String> bf1 = BloomFilter.create(Funnels.unencodedCharsFunnel(), 100);
        bf1.put("1");
        bf1.put("2");
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 22K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/hash/HashingTest.java

            .addEqualityGroup(
                Hashing.concatenating(Hashing.md5(), Hashing.murmur3_32()),
                Hashing.concatenating(asList(Hashing.md5(), Hashing.murmur3_32())))
            .testEquals();
      }
    
      public void testConcatenatingIterable_bits() {
        assertEquals(
            Hashing.md5().bits() + Hashing.md5().bits(),
            Hashing.concatenating(asList(Hashing.md5(), Hashing.md5())).bits());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 26.4K bytes
    - Viewed (0)
Back to top