Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 92 for 42 (0.14 sec)

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

            rawtypeToWildcard(MinMaxPriorityQueue.maximumSize(42)).create();
        assertEquals(11, queue.capacity());
        assertEquals(42, queue.maximumSize);
        checkNatural(queue);
      }
    
      public void testCreation_comparator_maximumSize() {
        MinMaxPriorityQueue<Integer> queue =
            MinMaxPriorityQueue.orderedBy(SOME_COMPARATOR).maximumSize(42).create();
        assertEquals(11, queue.capacity());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 36.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/hash/Murmur3Hash32Test.java

    public class Murmur3Hash32Test extends TestCase {
      public void testKnownIntegerInputs() {
        assertHash(593689054, murmur3_32().hashInt(0));
        assertHash(-189366624, murmur3_32().hashInt(-42));
        assertHash(-1134849565, murmur3_32().hashInt(42));
        assertHash(-1718298732, murmur3_32().hashInt(Integer.MIN_VALUE));
        assertHash(-1653689534, murmur3_32().hashInt(Integer.MAX_VALUE));
      }
    
      public void testKnownLongInputs() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 08 13:56:22 GMT 2021
    - 8.6K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/base/EquivalenceTest.java

        EquivalenceTester.of(Equivalence.equals())
            .addEquivalenceGroup(new Integer(42_000_000), 42_000_000)
            .addEquivalenceGroup("a")
            .test();
      }
    
      public void testIdentityEquivalent() {
        EquivalenceTester.of(Equivalence.identity())
            .addEquivalenceGroup(new Integer(42_000_000))
            .addEquivalenceGroup(new Integer(42_000_000))
            .addEquivalenceGroup("a")
            .test();
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  4. android/guava-tests/benchmark/com/google/common/primitives/UnsignedBytesBenchmark.java

        // Differ at the last element
        ba3 = Arrays.copyOf(ba1, ba1.length);
        ba4 = Arrays.copyOf(ba1, ba1.length);
        ba3[ba1.length - 1] = (byte) 43;
        ba4[ba1.length - 1] = (byte) 42;
    
        javaImpl = UnsignedBytes.lexicographicalComparatorJavaImpl();
        unsafeImpl = UnsignedBytes.LexicographicalComparatorHolder.UnsafeComparator.INSTANCE;
      }
    
      @Benchmark
      void longEqualJava(int reps) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.8K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/base/ToStringHelperTest.java

      @GwtIncompatible // Class names are obfuscated in GWT
      public void testToString_oneIntegerField() {
        String toTest =
            MoreObjects.toStringHelper(new TestClass()).add("field1", Integer.valueOf(42)).toString();
        assertEquals("TestClass{field1=42}", toTest);
      }
    
      @GwtIncompatible // Class names are obfuscated in GWT
      public void testToString_nullInteger() {
        String toTest =
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:24:55 GMT 2024
    - 15.6K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/cache/CacheBuilderTest.java

        assertThrows(IllegalStateException.class, () -> builder.build(identityLoader()));
      }
    
      @GwtIncompatible // weigher
      public void testWeigher_withMaximumSize() {
        assertThrows(
            IllegalStateException.class,
            () -> CacheBuilder.newBuilder().weigher(constantWeigher(42)).maximumSize(1));
        assertThrows(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Oct 03 20:10:02 GMT 2023
    - 23.2K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/base/OptionalTest.java

        assertEquals(Optional.of("a"), Optional.of("a").transform(Functions.identity()));
      }
    
      public void testTransform_presentToString() {
        assertEquals(Optional.of("42"), Optional.of(42).transform(Functions.toStringFunction()));
      }
    
      public void testTransform_present_functionReturnsNull() {
        try {
          Optional<String> unused =
              Optional.of("a")
                  .transform(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/graph/GraphMutationTest.java

      }
    
      @Test
      public void undirectedGraph() {
        testGraphMutation(GraphBuilder.undirected());
      }
    
      private static void testGraphMutation(GraphBuilder<? super Integer> graphBuilder) {
        Random gen = new Random(42); // Fixed seed so test results are deterministic.
    
        for (int trial = 0; trial < NUM_TRIALS; ++trial) {
          MutableGraph<Integer> graph = graphBuilder.allowsSelfLoops(true).build();
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Aug 18 16:17:46 GMT 2017
    - 4.2K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/io/FileBackedOutputStreamTest.java

          return;
        }
        out.write(data);
        assertTrue(Arrays.equals(data, source.read()));
    
        out.close();
        assertThrows(IOException.class, () -> out.write(42));
    
        // Verify that write had no effect
        assertTrue(Arrays.equals(data, source.read()));
        out.reset();
      }
    
      public void testReset() throws Exception {
        byte[] data = newPreFilledByteArray(100);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 5.5K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/MultimapsTest.java

        checkUnmodifiableMultimap(TreeMultimap.<String, Integer>create(), false, "null", 42);
      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
      public void testSerializingUnmodifiableTreeMultimap() {
        Multimap<String, Integer> unmodifiable =
            prepareUnmodifiableTests(TreeMultimap.<String, Integer>create(), false, "null", 42);
        SerializableTester.reserializeAndAssert(unmodifiable);
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 42.2K bytes
    - Viewed (0)
Back to top