Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 139 for test_equals (0.06 sec)

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

            .addEqualityGroup(immutableCell("foo", 1, 'b'))
            .addEqualityGroup(
                Tables.<@Nullable Object, @Nullable Object, @Nullable Object>immutableCell(
                    null, null, null))
            .testEquals();
      }
    
      public void testEntryEqualsNull() {
        Cell<@Nullable String, @Nullable Integer, @Nullable Character> entry =
            immutableCell(null, null, null);
    
        new EqualsTester()
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/primitives/UnsignedIntegerTest.java

                .isEqualTo(aUnsigned.bigIntegerValue().compareTo(bUnsigned.bigIntegerValue()));
          }
        }
      }
    
      @J2ktIncompatible
      @GwtIncompatible // too slow
      public void testEquals() {
        EqualsTester equalsTester = new EqualsTester();
        for (int a : TEST_INTS) {
          long value = a & 0xffffffffL;
          equalsTester.addEqualityGroup(
              UnsignedInteger.fromIntBits(a),
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SmbTreeImplTest.java

            assertTrue(tree.matches("share", "A:"));
            assertFalse(tree.matches("othershare", "A:"));
        }
    
        // Test case for the equals method
        @Test
        void testEquals() {
            SmbTreeImpl tree1 = new SmbTreeImpl(session, "SHARE", "A:");
            SmbTreeImpl tree2 = new SmbTreeImpl(session, "SHARE", "A:");
            SmbTreeImpl tree3 = new SmbTreeImpl(session, "OTHER", "A:");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/SingletonImmutableTableTest.java

            .addEqualityGroup(HashBasedTable.create(ImmutableTable.of('A', 2, "")))
            .testEquals();
      }
    
      @GwtIncompatible // ArrayTable
      public void testEqualsObjectNullValues() {
        new EqualsTester()
            .addEqualityGroup(testTable)
            .addEqualityGroup(ArrayTable.create(ImmutableSet.of('A'), ImmutableSet.of(1)))
            .testEquals();
      }
    
      public void testToString() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 4K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/ForwardingNavigableMapTest.java

                  }
                });
      }
    
      public void testEquals() {
        NavigableMap<Integer, String> map1 = ImmutableSortedMap.of(1, "one");
        NavigableMap<Integer, String> map2 = ImmutableSortedMap.of(2, "two");
        new EqualsTester()
            .addEqualityGroup(map1, wrap(map1), wrap(map1))
            .addEqualityGroup(map2, wrap(map2))
            .testEquals();
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/MultisetsImmutableEntryTest.java

      }
    
      public void testToStringNull() {
        assertEquals("null", entry(NE, 1).toString());
        assertEquals("null x 2", entry(NE, 2).toString());
      }
    
      public void testEquals() {
        assertEquals(control("foo", 1), entry("foo", 1));
        assertEquals(control("bar", 2), entry("bar", 2));
        assertFalse(control("foo", 1).equals(entry("foo", 2)));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/RangeTest.java

        assertFalse(predicate.apply(4));
      }
    
      public void testEquals() {
        new EqualsTester()
            .addEqualityGroup(Range.open(1, 5), Range.range(1, OPEN, 5, OPEN))
            .addEqualityGroup(Range.greaterThan(2), Range.greaterThan(2))
            .addEqualityGroup(Range.all(), Range.all())
            .addEqualityGroup("Phil")
            .testEquals();
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 24.1K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/base/SuppliersTest.java

      public void testOfInstance_equals() {
        new EqualsTester()
            .addEqualityGroup(Suppliers.ofInstance("foo"), Suppliers.ofInstance("foo"))
            .addEqualityGroup(Suppliers.ofInstance("bar"))
            .testEquals();
      }
    
      public void testCompose_equals() {
        new EqualsTester()
            .addEqualityGroup(
                Suppliers.compose(Functions.constant(1), Suppliers.ofInstance("foo")),
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 17.9K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/cache/PopulatedCachesTest.java

          new EqualsTester()
              .addEqualityGroup(cache.asMap().keySet(), keys)
              .addEqualityGroup(ImmutableSet.of())
              .testEquals();
          assertEquals(WARMUP_SIZE, keys.size());
          for (int i = WARMUP_MIN; i < WARMUP_MAX; i++) {
            Object key = warmed.get(i - WARMUP_MIN).getKey();
            assertTrue(keys.contains(key));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/ForwardingSortedMapTest.java

                  }
                });
      }
    
      public void testEquals() {
        SortedMap<Integer, String> map1 = ImmutableSortedMap.of(1, "one");
        SortedMap<Integer, String> map2 = ImmutableSortedMap.of(2, "two");
        new EqualsTester()
            .addEqualityGroup(map1, wrap(map1), wrap(map1))
            .addEqualityGroup(map2, wrap(map2))
            .testEquals();
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 20:34:52 UTC 2025
    - 7.7K bytes
    - Viewed (0)
Back to top