Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 46 for testEqual (0.04 sec)

  1. android/guava-tests/test/com/google/common/io/FilesTest.java

        File temp2 = createTempFile();
        Files.write(ASCII, temp2, UTF_8);
        Files.copy(temp1, temp2);
        assertEquals(ASCII, Files.toString(temp2, UTF_8));
      }
    
      public void testEqual() throws IOException {
        File asciiFile = getTestFile("ascii.txt");
        File i18nFile = getTestFile("i18n.txt");
        assertFalse(Files.equal(asciiFile, i18nFile));
        assertTrue(Files.equal(asciiFile, asciiFile));
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 18:44:53 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/io/FilesTest.java

        File temp2 = createTempFile();
        Files.write(ASCII, temp2, UTF_8);
        Files.copy(temp1, temp2);
        assertEquals(ASCII, Files.toString(temp2, UTF_8));
      }
    
      public void testEqual() throws IOException {
        File asciiFile = getTestFile("ascii.txt");
        File i18nFile = getTestFile("i18n.txt");
        assertFalse(Files.equal(asciiFile, i18nFile));
        assertTrue(Files.equal(asciiFile, asciiFile));
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 18:44:53 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/base/PredicatesTest.java

            .addEqualityGroup(Predicates.not(TRUE))
            .addEqualityGroup(isOdd())
            .testEquals();
      }
    
      public void testNot_equalityForNotOfKnownValues() {
        new EqualsTester()
            .addEqualityGroup(TRUE, Predicates.alwaysTrue())
            .addEqualityGroup(FALSE)
            .addEqualityGroup(Predicates.not(TRUE))
            .testEquals();
    
        new EqualsTester()
            .addEqualityGroup(FALSE, Predicates.alwaysFalse())
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 32.3K bytes
    - Viewed (0)
  4. guava-testlib/test/com/google/common/testing/ClassSanityTesterTest.java

      }
    
      public void testGoodEquals() throws Exception {
        tester.testEquals(GoodEquals.class);
      }
    
      public void testEquals_interface() {
        tester.testEquals(AnInterface.class);
      }
    
      public void testEquals_abstractClass() {
        tester.testEquals(AnAbstractClass.class);
      }
    
      public void testEquals_enum() {
        tester.testEquals(OneConstantEnum.class);
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 36.3K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/base/PredicatesTest.java

            .addEqualityGroup(Predicates.not(TRUE))
            .addEqualityGroup(isOdd())
            .testEquals();
      }
    
      public void testNot_equalityForNotOfKnownValues() {
        new EqualsTester()
            .addEqualityGroup(TRUE, Predicates.alwaysTrue())
            .addEqualityGroup(FALSE)
            .addEqualityGroup(Predicates.not(TRUE))
            .testEquals();
    
        new EqualsTester()
            .addEqualityGroup(FALSE, Predicates.alwaysFalse())
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 32.3K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/base/FunctionsTest.java

            .addEqualityGroup(g)
            .testEquals();
    
        new EqualsTester()
            .addEqualityGroup(g, Functions.<@Nullable Object>constant(null))
            .addEqualityGroup(Functions.constant("incorrect"))
            .addEqualityGroup(Functions.toStringFunction())
            .addEqualityGroup(f)
            .testEquals();
      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 16K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/base/FunctionsTest.java

            .addEqualityGroup(g)
            .testEquals();
    
        new EqualsTester()
            .addEqualityGroup(g, Functions.<@Nullable Object>constant(null))
            .addEqualityGroup(Functions.constant("incorrect"))
            .addEqualityGroup(Functions.toStringFunction())
            .addEqualityGroup(f)
            .testEquals();
      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 16K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/EmptyImmutableTableTest.java

            .addEqualityGroup(nonEmptyTable)
            .testEquals();
      }
    
      @GwtIncompatible // ArrayTable
      public void testEqualsObjectNullValues() {
        new EqualsTester()
            .addEqualityGroup(INSTANCE)
            .addEqualityGroup(ArrayTable.create(ImmutableSet.of('A'), ImmutableSet.of(1)))
            .testEquals();
      }
    
      public void testToString() {
        assertEquals("{}", INSTANCE.toString());
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  9. 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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 4K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/primitives/UnsignedLongTest.java

            assertThat(aUnsigned.compareTo(bUnsigned))
                .isEqualTo(aUnsigned.bigIntegerValue().compareTo(bUnsigned.bigIntegerValue()));
          }
        }
      }
    
      @GwtIncompatible // too slow
      public void testEquals() {
        EqualsTester equalsTester = new EqualsTester();
        for (long a : TEST_LONGS) {
          BigInteger big =
              (a >= 0) ? BigInteger.valueOf(a) : BigInteger.valueOf(a).add(BigInteger.ZERO.setBit(64));
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:45:32 UTC 2025
    - 10.4K bytes
    - Viewed (0)
Back to top