Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 79 for 02 (0.01 sec)

  1. android/guava-tests/test/com/google/common/math/MathBenchmarking.java

        BigInteger result;
        do {
          result = randomNonNegativeBigInteger(numBits);
        } while (result.signum() == 0);
        return result;
      }
    
      /**
       * Generates a number in [0, 2^numBits) with an exponential distribution. The floor of the log2 of
       * the result is chosen uniformly at random in [0, numBits), and then the result is chosen in that
       * range uniformly at random. Zero is treated as having log2 == 0.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/google/ListGenerators.java

        @Override
        protected List<String> create(String[] elements) {
          String[] prefix = {"f", "g"};
          String[] all = new String[elements.length + prefix.length];
          arraycopy(prefix, 0, all, 0, 2);
          arraycopy(elements, 0, all, 2, elements.length);
          return ImmutableList.copyOf(all).subList(2, elements.length + 2);
        }
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 14:50:24 UTC 2024
    - 5K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/google/ListGenerators.java

        @Override
        protected List<String> create(String[] elements) {
          String[] prefix = {"f", "g"};
          String[] all = new String[elements.length + prefix.length];
          arraycopy(prefix, 0, all, 0, 2);
          arraycopy(elements, 0, all, 2, elements.length);
          return ImmutableList.copyOf(all).subList(2, elements.length + 2);
        }
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 14:50:24 UTC 2024
    - 5K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/RangeTest.java

        assertThat(expected).hasMessageThat().contains("connected");
        expected =
            assertThrows(IllegalArgumentException.class, () -> range.intersection(Range.closed(0, 2)));
        assertThat(expected).hasMessageThat().contains("connected");
      }
    
      public void testIntersection_deFactoEmpty() {
        {
          Range<Integer> range = Range.open(3, 4);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 24.1K bytes
    - Viewed (0)
  5. okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DnsRecordCodecTest.kt

                  "00010000003b00102a032880f0290011faceb00c00000002"
              ).decodeHex(),
          )
        assertThat(decoded)
          .containsExactly(InetAddress.getByName("2a03:2880:f029:11:face:b00c:0:2"))
      }
    
      @Test
      fun testGoogleDotComDecodingNxdomainFailure() {
        assertFailsWith<UnknownHostException> {
          decodeAnswers(
            hostname = "sdflkhfsdlkjdf.ee",
            byteString =
              (
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu May 29 20:09:10 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/ImmutableCollectionTest.java

    public class ImmutableCollectionTest extends TestCase {
      public void testCapacityExpansion() {
        assertEquals(1, ImmutableCollection.Builder.expandedCapacity(0, 1));
        assertEquals(2, ImmutableCollection.Builder.expandedCapacity(0, 2));
        assertEquals(2, ImmutableCollection.Builder.expandedCapacity(1, 2));
        assertEquals(
            Integer.MAX_VALUE, ImmutableCollection.Builder.expandedCapacity(0, Integer.MAX_VALUE));
        assertEquals(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/google/MultisetSetCountConditionallyTester.java

      @CollectionFeature.Require(SUPPORTS_ADD)
      public void testSetCountConditional_oldCountTooSmallZero() {
        assertFalse(
            "setCount() with a too-small oldCount should return false",
            getMultiset().setCount(e0(), 0, 2));
        expectUnchanged();
      }
    
      @CollectionSize.Require(SEVERAL)
      @CollectionFeature.Require(SUPPORTS_ADD)
      public void testSetCountConditional_oldCountTooSmallNonzero() {
        initThreeCopies();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Nov 14 23:40:07 UTC 2024
    - 4K bytes
    - Viewed (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/KotlinSourceModernTest.kt

        requestBody = byteArrayOf(0, 1).toRequestBody(null, 0, 2)
        requestBody = byteArrayOf(0, 1).toRequestBody("".toMediaTypeOrNull(), 0, 2)
        requestBody = byteArrayOf(0, 1).toRequestBody(null, 0, 2)
        requestBody = byteArrayOf(0, 1).toRequestBody("".toMediaTypeOrNull(), 0, 2)
        requestBody = File("").asRequestBody(null)
        requestBody = File("").asRequestBody("".toMediaTypeOrNull())
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Jun 21 20:36:35 UTC 2025
    - 46.5K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/math/MathBenchmarking.java

        BigInteger result;
        do {
          result = randomNonNegativeBigInteger(numBits);
        } while (result.signum() == 0);
        return result;
      }
    
      /**
       * Generates a number in [0, 2^numBits) with an exponential distribution. The floor of the log2 of
       * the result is chosen uniformly at random in [0, numBits), and then the result is chosen in that
       * range uniformly at random. Zero is treated as having log2 == 0.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/primitives/ImmutableLongArrayTest.java

        assertThat(iia1.subArray(1, 1)).isSameInstanceAs(ImmutableLongArray.of());
        assertThat(iia1.subArray(0, 1).asList()).containsExactly(5L);
        assertThat(iia3.subArray(0, 2).asList()).containsExactly(5L, 25L).inOrder();
        assertThat(iia3.subArray(1, 3).asList()).containsExactly(25L, 125L).inOrder();
    
        assertThrows(IndexOutOfBoundsException.class, () -> iia3.subArray(-1, 1));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 20.5K bytes
    - Viewed (0)
Back to top