Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 1,113 for REMOVE (0.1 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapRemoveTester.java

        for (int i = 0; i < 3; i++) {
          resetContainer(mapEntry(k0(), v0()), mapEntry(k0(), v1()), mapEntry(k0(), v0()));
          List<V> expectedValues = copyToList(values);
    
          multimap().get(k0()).remove(i);
          expectedValues.remove(i);
    
          assertGet(k0(), expectedValues);
        }
      }
    
      @MapFeature.Require(SUPPORTS_REMOVE)
      @CollectionSize.Require(SEVERAL)
      public void testRemoveAtIndexFromAsMapPropagates() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  2. tests/test_params_repr.py

            # TODO: remove when deprecating Pydantic v1
            "Param(Ellipsis)",
        )
    
    
    def test_param_repr_number():
        assert repr(Param(1)) == "Param(1)"
    
    
    def test_param_repr_list():
        assert repr(Param([])) == "Param([])"
    
    
    def test_path_repr():
        assert repr(Path()) == IsOneOf(
            "Path(PydanticUndefined)",
            # TODO: remove when deprecating Pydantic v1
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_request_form_models/test_tutorial001_an.py

                        "loc": ["body", "password"],
                        "msg": "Field required",
                        "input": {"username": "Foo"},
                    }
                ]
            }
        ) | IsDict(
            # TODO: remove when deprecating Pydantic v1
            {
                "detail": [
                    {
                        "loc": ["body", "password"],
                        "msg": "field required",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Sep 05 15:16:50 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java

            }
          };
      Stimulus<E, Iterator<E>> remove =
          new Stimulus<E, Iterator<E>>("remove") {
            @Override
            void executeAndCompare(ListIterator<E> reference, Iterator<E> target) {
              internalExecuteAndCompare(reference, target, REMOVE_METHOD);
            }
          };
    
      List<Stimulus<E, Iterator<E>>> iteratorStimuli() {
        return asList(hasNext, next, remove);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/AbstractMapsTransformValuesTest.java

        map.remove("a");
        assertFalse(underlying.containsKey("a"));
    
        Set<String> keys = map.keySet();
        keys.remove("b");
        assertFalse(underlying.containsKey("b"));
    
        Iterator<String> keyIterator = keys.iterator();
        keyIterator.next();
        keyIterator.remove();
        assertFalse(underlying.containsKey("c"));
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapKeysTester.java

        assertEquals(Multisets.immutableEntry(k0(), 1), itr.next());
        itr.remove();
        assertTrue(multimap().isEmpty());
      }
    
      @CollectionSize.Require(SEVERAL)
      @MapFeature.Require(SUPPORTS_REMOVE)
      public void testKeysEntrySetRemove() {
        resetContainer(mapEntry(k0(), v0()), mapEntry(k0(), v1()), mapEntry(k1(), v0()));
        assertTrue(multimap().keys().entrySet().remove(Multisets.immutableEntry(k0(), 2)));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Iterators.java

            }
            return iterator.next();
          }
    
          @Override
          public void remove() {
            iterator.remove();
          }
        };
      }
    
      /**
       * Returns an iterator that cycles indefinitely over the provided elements.
       *
       * <p>The returned iterator supports {@code remove()}. After {@code remove()} is called,
       * subsequent cycles omit the removed element, but {@code elements} does not change. The
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 50.3K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/testers/QueueRemoveTester.java

      public void testRemove_empty() {
        assertThrows(NoSuchElementException.class, () -> getQueue().remove());
        expectUnchanged();
      }
    
      @CollectionFeature.Require(SUPPORTS_REMOVE)
      @CollectionSize.Require(ONE)
      public void testRemove_size1() {
        assertEquals("size1Queue.remove() should return first element", e0(), getQueue().remove());
        expectMissing(e0());
      }
    
      @CollectionFeature.Require({KNOWN_ORDER, SUPPORTS_REMOVE})
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 20:00:30 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/google/UnmodifiableCollectionTests.java

        } catch (UnsupportedOperationException expected) {
        }
        assertMultimapRemainsUnmodified(multimap, originalEntries);
    
        // Test #remove()
        try {
          multimap.remove(sampleKey, sampleValue);
          fail("remove succeeded on unmodifiable multimap");
        } catch (UnsupportedOperationException expected) {
        }
        assertMultimapRemainsUnmodified(multimap, originalEntries);
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  10. tests/test_query.py

                        "loc": ["query", "query"],
                        "msg": "Field required",
                        "input": None,
                    }
                ]
            }
        ) | IsDict(
            # TODO: remove when deprecating Pydantic v1
            {
                "detail": [
                    {
                        "loc": ["query", "query"],
                        "msg": "field required",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 21:56:59 UTC 2024
    - 11.4K bytes
    - Viewed (0)
Back to top