Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 158 for PASS (0.14 sec)

  1. guava-tests/test/com/google/common/escape/EscapersTest.java

        } catch (IllegalArgumentException e) {
          // pass
        }
        assertEquals("<lo><hi>", charEscaper.escape("\uDC00\uD800"));
        try {
          unicodeEscaper.escape("\uDC00\uD800");
          fail("should have failed for bad Unicode input");
        } catch (IllegalArgumentException e) {
          // pass
        }
      }
    
      // A trivial non-optimized escaper for testing.
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/TopKSelector.java

            minThresholdPosition = pivotNewIndex;
          } else {
            break;
          }
          iterations++;
          if (iterations >= maxIterations) {
            @SuppressWarnings("nullness") // safe because we pass sort() a range that contains real Ts
            T[] castBuffer = (T[]) buffer;
            // We've already taken O(k log k), let's make sure we don't take longer than O(k log k).
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ImmutableSortedMultiset.java

       * ImmutableSortedMultiset}, not this dummy version.
       *
       * @throws UnsupportedOperationException always
       * @deprecated <b>Pass a parameter of type {@code Comparable} to use {@link
       *     ImmutableSortedMultiset#of(Comparable)}.</b>
       */
      @DoNotCall("Elements must be Comparable. (Or, pass a Comparator to orderedBy or copyOf.)")
      @Deprecated
      public static <E> ImmutableSortedMultiset<E> of(E element) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 29.6K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java

      }
    
      /**
       * Wrapper for {@link Map#get(Object)} that forces the caller to pass in a key of the same type as
       * the map. Besides being slightly shorter than code that uses {@link #getMap()}, it also ensures
       * that callers don't pass an {@link Entry} by mistake.
       */
      protected V get(K key) {
        return getMap().get(key);
      }
    
      protected final K k0() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 7.5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/escape/UnicodeEscaperTest.java

          fail("Trailing high surrogate should cause exception");
        } catch (IllegalArgumentException expected) {
          // Pass
        }
        try {
          escapeAsString(SIMPLE_ESCAPER, test);
          fail("Trailing high surrogate should cause exception");
        } catch (IllegalArgumentException expected) {
          // Pass
        }
      }
    
      public void testNullInput() {
        UnicodeEscaper e = SIMPLE_ESCAPER;
        try {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 6.2K bytes
    - Viewed (0)
  6. android/guava-testlib/test/com/google/common/testing/EqualsTesterTest.java

          fail("expected <" + e.getMessage() + "> to contain <" + message + ">");
        }
      }
    
      /**
       * Test class with valid equals and hashCode methods. Testers created with instances of this class
       * should always pass.
       */
      private static class ValidTestObject {
        private int aspect1;
        private int aspect2;
    
        ValidTestObject(int aspect1, int aspect2) {
          this.aspect1 = aspect1;
          this.aspect2 = aspect2;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 17 15:49:06 GMT 2023
    - 12.9K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ComparisonChain.java

       *
       * <p>This method is declared to accept any 2 {@code Comparable} objects, even if they are not <a
       * href="https://docs.oracle.com/javase/tutorial/collections/interfaces/order.html">mutually
       * comparable</a>. If you pass objects that are not mutually comparable, this method may throw an
       * exception. (The reason for this decision is lost to time, but the reason <i>might</i> be that
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Sep 21 17:28:11 GMT 2022
    - 11.2K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/net/UrlEscapersTest.java

        // URL escapers should throw null pointer exceptions for null input
        try {
          e.escape((String) null);
          fail("Escaping null string should throw exception");
        } catch (NullPointerException x) {
          // pass
        }
    
        // All URL escapers should leave 0-9, A-Z, a-z unescaped
        assertUnescaped(e, 'a');
        assertUnescaped(e, 'z');
        assertUnescaped(e, 'A');
        assertUnescaped(e, 'Z');
        assertUnescaped(e, '0');
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/base/Converter.java

     *       the {@code Converter} type using a mocking framework.
     *   <li>Extend this class and implement its {@link #doForward} and {@link #doBackward} methods.
     *   <li><b>Java 8+ users:</b> you may prefer to pass two lambda expressions or method references to
     *       the {@link #from from} factory method.
     * </ul>
     *
     * <p>Using a converter:
     *
     * <ul>
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 23K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/net/PercentEscaperTest.java

      public void testBadArguments_null() {
        try {
          new PercentEscaper(null, false);
          fail("Expected null pointer exception for null parameter");
        } catch (NullPointerException expected) {
          // pass
        }
      }
    
      /**
       * Tests that specifying any alphanumeric characters as 'safe' causes an {@link
       * IllegalArgumentException}.
       */
      public void testBadArguments_badchars() {
        String msg =
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 5.2K bytes
    - Viewed (0)
Back to top