Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 41 - 50 of 2,785 for Gist (0.03 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. guava-testlib/test/com/google/common/collect/testing/HelpersTest.java

      }
    
      public void testAssertEqualInOrder() {
        List<?> list = asList("a", "b", "c");
        assertEqualInOrder(list, list);
    
        List<?> fewer = asList("a", "b");
        assertThrows(AssertionFailedError.class, () -> assertEqualInOrder(list, fewer));
    
        assertThrows(AssertionFailedError.class, () -> assertEqualInOrder(fewer, list));
    
        List<?> differentOrder = asList("a", "c", "b");
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 09 19:16:24 GMT 2026
    - 4.4K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/collect/ImmutableListTest.java

      }
    
      public void testCreation_threeElements() {
        List<String> list = ImmutableList.of("a", "b", "c");
        assertEquals(Lists.newArrayList("a", "b", "c"), list);
      }
    
      public void testCreation_fourElements() {
        List<String> list = ImmutableList.of("a", "b", "c", "d");
        assertEquals(Lists.newArrayList("a", "b", "c", "d"), list);
      }
    
      public void testCreation_fiveElements() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 23.8K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/collect/IteratorsTest.java

        assertEquals(list, newArrayList(Iterators.limit(list.iterator(), 2)));
    
        list.add("pants");
        assertFalse(Iterators.limit(list.iterator(), 0).hasNext());
        assertEquals(ImmutableList.of("cool"), newArrayList(Iterators.limit(list.iterator(), 1)));
        assertEquals(list, newArrayList(Iterators.limit(list.iterator(), 2)));
        assertEquals(list, newArrayList(Iterators.limit(list.iterator(), 3)));
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 57.3K bytes
    - Click Count (0)
  4. tests/test_request_params/test_body/test_optional_list.py

    # Without aliases
    
    
    @app.post("/optional-list-str", operation_id="optional_list_str")
    async def read_optional_list_str(
        p: Annotated[list[str] | None, Body(embed=True)] = None,
    ):
        return {"p": p}
    
    
    class BodyModelOptionalListStr(BaseModel):
        p: list[str] | None = None
    
    
    @app.post("/model-optional-list-str", operation_id="model_optional_list_str")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 12.6K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/reflect/TypeTokenSubtypeTest.java

          return isSubtype(list);
        }
    
        @TestSubtype(suppressGetSupertype = true, suppressGetSubtype = true)
        public <T> Iterable<? extends T> wildCardsDoNotMatchByUpperBound(List<?> list) {
          return notSubtype(list);
        }
    
        @TestSubtype(suppressGetSupertype = true, suppressGetSubtype = true)
        public <T> Iterable<? super String> wildcardsMatchByLowerBound(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 20.4K bytes
    - Click Count (0)
  6. tests/test_request_params/test_file/test_optional_list.py

    # Without aliases
    
    
    @app.post("/optional-list-bytes")
    async def read_optional_list_bytes(p: Annotated[list[bytes] | None, File()] = None):
        return {"file_size": [len(file) for file in p] if p else None}
    
    
    @app.post("/optional-list-uploadfile")
    async def read_optional_list_uploadfile(
        p: Annotated[list[UploadFile] | None, File()] = None,
    ):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Feb 21 13:01:31 GMT 2026
    - 10.8K bytes
    - Click Count (0)
  7. guava/src/com/google/common/collect/CartesianList.java

      private final transient int[] axesSizeProduct;
    
      static <E> List<List<E>> create(List<? extends List<? extends E>> lists) {
        ImmutableList.Builder<List<E>> axesBuilder = new ImmutableList.Builder<>(lists.size());
        for (List<? extends E> list : lists) {
          List<E> copy = ImmutableList.copyOf(list);
          if (copy.isEmpty()) {
            return ImmutableList.of();
          }
          axesBuilder.add(copy);
        }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Aug 31 13:15:26 GMT 2025
    - 4.7K bytes
    - Click Count (0)
  8. android/guava-tests/test/com/google/common/collect/OrderingTest.java

        List<Integer> list = asList(3, 4, 5, -1);
        List<Integer> result = numberOrdering.leastOf(list, list.size() + 1);
        assertTrue(result instanceof RandomAccess);
        assertListImmutable(result);
        assertEquals(ImmutableList.of(-1, 3, 4, 5), result);
      }
    
      public void testLeastOfIterator_simple_nPlusOne() {
        List<Integer> list = asList(3, 4, 5, -1);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 43.2K bytes
    - Click Count (0)
  9. guava-tests/test/com/google/common/collect/OrderingTest.java

        List<Integer> list = asList(3, 4, 5, -1);
        List<Integer> result = numberOrdering.leastOf(list, list.size() + 1);
        assertTrue(result instanceof RandomAccess);
        assertListImmutable(result);
        assertEquals(ImmutableList.of(-1, 3, 4, 5), result);
      }
    
      public void testLeastOfIterator_simple_nPlusOne() {
        List<Integer> list = asList(3, 4, 5, -1);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 43.2K bytes
    - Click Count (0)
  10. guava-tests/test/com/google/common/collect/Collections2Test.java

      }
    
      public void testOrderedPermutationSetEmpty() {
        List<Integer> list = new ArrayList<>();
        Collection<List<Integer>> permutationSet = Collections2.orderedPermutations(list);
    
        assertEquals(1, permutationSet.size());
        assertThat(permutationSet).contains(list);
    
        Iterator<List<Integer>> permutations = permutationSet.iterator();
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 20.1K bytes
    - Click Count (0)
Back to Top