Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,337 for Jest (0.15 sec)

  1. android/guava-tests/test/com/google/common/base/JoinerTest.java

        if (num >= 0) {
          Object[] rest = new Integer[num];
          for (int i = 0; i < num; i++) {
            rest[i] = partsArray[i + 2];
          }
    
          assertEquals(expected, joiner.join(partsArray[0], partsArray[1], rest));
    
          StringBuilder sb3 = new StringBuilder().append('x');
          joiner.appendTo(sb3, partsArray[0], partsArray[1], rest);
          assertEquals("x" + expected, sb3.toString());
        }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 12.6K bytes
    - Viewed (0)
  2. CONTRIBUTING.md

    API changes
    -----------
    
    We make changes to Guava's public [APIs][], including adding new APIs, very
    carefully. Because of this, if you're interested in seeing a new feature in
    Guava, the best approach is to create an [issue][] (or comment on an existing
    issue if there is one) requesting the feature and describing specific use cases
    for it.
    
    If the feature has merit, it will go through a thorough process of API design
    Plain Text
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Nov 17 18:47:47 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/ImmutableSetTest.java

    import com.google.common.testing.EqualsTester;
    import java.util.Collection;
    import java.util.Collections;
    import java.util.Iterator;
    import java.util.Set;
    import junit.framework.Test;
    import junit.framework.TestSuite;
    
    /**
     * Unit test for {@link ImmutableSet}.
     *
     * @author Kevin Bourrillion
     * @author Jared Levy
     * @author Nick Kralevich
     */
    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 13.7K bytes
    - Viewed (0)
  4. guava/src/com/google/common/base/Strings.java

       *
       * @param string the string to test and possibly return
       * @return {@code string} itself if it is non-null; {@code ""} if it is null
       */
      public static String nullToEmpty(@CheckForNull String string) {
        return Platform.nullToEmpty(string);
      }
    
      /**
       * Returns the given string if it is nonempty; {@code null} otherwise.
       *
       * @param string the string to test and possibly return
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Sep 17 20:47:03 GMT 2021
    - 12.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/HashBiMap.java

       * previously at {@code src} has already been removed from the data structures.
       */
      private void moveEntryToIndex(int src, int dest) {
        if (src == dest) {
          return;
        }
        int predecessor = prevInInsertionOrder[src];
        int successor = nextInInsertionOrder[src];
        setSucceeds(predecessor, dest);
        setSucceeds(dest, successor);
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Mar 06 16:06:58 GMT 2023
    - 36.4K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/html/HtmlEscapersTest.java

        assertEquals("&quot;test&quot;", htmlEscaper().escape("\"test\""));
        assertEquals("&#39;test&#39;", htmlEscaper().escape("\'test'"));
        assertEquals("test &amp; test &amp; test", htmlEscaper().escape("test & test & test"));
        assertEquals("test &lt;&lt; 1", htmlEscaper().escape("test << 1"));
        assertEquals("test &gt;&gt; 1", htmlEscaper().escape("test >> 1"));
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Dec 16 19:54:45 GMT 2020
    - 2.3K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/hash/Hashing.java

       */
      public static HashFunction concatenating(
          HashFunction first, HashFunction second, HashFunction... rest) {
        // We can't use Lists.asList() here because there's no hash->collect dependency
        List<HashFunction> list = new ArrayList<>();
        list.add(first);
        list.add(second);
        Collections.addAll(list, rest);
        return new ConcatenatedHashFunction(list.toArray(new HashFunction[0]));
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 09 00:37:15 GMT 2024
    - 29.2K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java

          }
        }.test();
      }
    
      @GwtIncompatible // slow (~30s)
      public void testIterator_general() {
        new IteratorTester<String>(
            5, UNMODIFIABLE, asList("a", "b", "c"), IteratorTester.KnownOrder.KNOWN_ORDER) {
          @Override
          protected Iterator<String> newTargetIterator() {
            return of("a", "b", "c").iterator();
          }
        }.test();
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java

          }
        }.test();
      }
    
      @GwtIncompatible // slow (~30s)
      public void testIterator_general() {
        new IteratorTester<String>(
            5, UNMODIFIABLE, asList("a", "b", "c"), IteratorTester.KnownOrder.KNOWN_ORDER) {
          @Override
          protected Iterator<String> newTargetIterator() {
            return of("a", "b", "c").iterator();
          }
        }.test();
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/graph/TraverserTest.java

          createDirectedGraph("ab", "fe", "fg", "bc", "bd", "ed", "eh", "gh");
    
      @Test
      public void forGraph_breadthFirst_javadocExample_canBeIteratedMultipleTimes() {
        Iterable<Character> result = Traverser.forGraph(JAVADOC_GRAPH).breadthFirst('a');
    
        assertEqualCharNodes(result, "abcdef");
        assertEqualCharNodes(result, "abcdef");
      }
    
      @Test
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 47.5K bytes
    - Viewed (0)
Back to top