Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 511 - 520 of 524 for isEqualTo (0.07 seconds)

  1. guava-tests/test/com/google/common/util/concurrent/ExecutionSequencerTest.java

            }
          }
          settableFuture.set(null);
          completeLengthChecks = allAsList(lengthChecks).get();
        } finally {
          service.shutdown();
        }
        assertThat(holder.count).isEqualTo(ITERATION_COUNT);
        for (int length : completeLengthChecks) {
          // Verify that at max depth, less than one stack frame per submitted task was consumed
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 13.6K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/math/LongMathTest.java

        for (RoundingMode roundingMode : EnumSet.complementOf(EnumSet.of(UNNECESSARY))) {
          for (long candidate : roundToDoubleTestCandidates) {
            assertThat(LongMath.roundToDouble(candidate, roundingMode))
                .isEqualTo(BigIntegerMath.roundToDouble(BigInteger.valueOf(candidate), roundingMode));
          }
        }
      }
    
      @GwtIncompatible
      public void testRoundToDoubleAgainstBigIntegerUnnecessary() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Oct 30 14:15:36 GMT 2025
    - 31.4K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/base/Utf8Test.java

        try {
          Utf8.encodedLength(invalidString);
          fail();
        } catch (IllegalArgumentException expected) {
          assertThat(expected)
              .hasMessageThat()
              .isEqualTo("Unpaired surrogate at index " + invalidCodePointIndex);
        }
      }
    
      // 128 - [chars 0x0000 to 0x007f]
      private static final long ONE_BYTE_ROUNDTRIPPABLE_CHARACTERS = 0x007f - 0x0000 + 1;
    
      // 128
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 15:59:55 GMT 2026
    - 12.9K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/io/ByteSourceTest.java

        ByteSource byteSource = new TestByteSource("hamburger\n".getBytes(US_ASCII));
    
        // Pasted this expected string from `echo hamburger | sha512sum`
        assertThat(byteSource.hash(sha512()).toString())
            .isEqualTo(
                "db0f986332e64487e8cfd30773944574abf9472382e661597e070699a3a78f6781bc0bd3b1cd51156ba25a4028c73bc505bdea2343de3b724568bcf3c50526c6");
      }
    
      public void testContentEquals() throws IOException {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 15.6K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/collect/Collections2Test.java

      public void testToStringImplWithNullEntries() throws Exception {
        List<@Nullable String> list = new ArrayList<>();
        list.add("foo");
        list.add(null);
    
        assertThat(Collections2.toStringImpl(list)).isEqualTo(list.toString());
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 20.1K bytes
    - Click Count (0)
  6. guava-tests/test/com/google/common/math/BigIntegerMathTest.java

            Double expectation = entry.getValue();
            assertWithMessage("roundToDouble(%s, %s)", input, mode)
                .that(BigIntegerMath.roundToDouble(input, mode))
                .isEqualTo(expectation);
          }
    
          if (!expectedValues.containsKey(UNNECESSARY)) {
            assertWithMessage("Expected roundUnnecessaryShouldThrow call")
                .that(unnecessaryShouldThrow)
                .isTrue();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 04:51:56 GMT 2026
    - 27.1K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/collect/Collections2Test.java

      public void testToStringImplWithNullEntries() throws Exception {
        List<@Nullable String> list = new ArrayList<>();
        list.add("foo");
        list.add(null);
    
        assertThat(Collections2.toStringImpl(list)).isEqualTo(list.toString());
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 20.1K bytes
    - Click Count (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/internal/tls/HostnameVerifierTest.kt

     * the License.
     */
    package okhttp3.internal.tls
    
    import assertk.assertThat
    import assertk.assertions.containsExactly
    import assertk.assertions.isEqualTo
    import assertk.assertions.isFalse
    import assertk.assertions.isInstanceOf
    import assertk.assertions.isTrue
    import java.io.ByteArrayInputStream
    import java.security.cert.CertificateFactory
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 40.4K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/base/Splitter.java

       * MapSplitter mapSplitter = outerSplitter.withKeyValueSeparator(Splitter.on("->"));
       * Map<String, String> result = mapSplitter.split(toSplit);
       * assertThat(result).isEqualTo(ImmutableMap.of("x ", " y", "z", " a"));
       * }
       *
       * @since 10.0
       */
      public MapSplitter withKeyValueSeparator(Splitter keyValueSplitter) {
        return new MapSplitter(this, keyValueSplitter);
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 23.8K bytes
    - Click Count (0)
  10. guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java

        assertThat(copyOf(c)).isSameInstanceAs(c);
      }
    
      public void testToString() {
        Set<String> set = of("a", "b", "c", "d", "e", "f", "g");
        assertThat(set.toString()).isEqualTo("[a, b, c, d, e, f, g]");
      }
    
      @GwtIncompatible // slow (~40s)
      public void testIterator_oneElement() {
        new IteratorTester<String>(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 18.5K bytes
    - Click Count (0)
Back to Top