Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 589 for bar6 (0.03 sec)

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

      }
    
      public void testPutNullReplace() {
        table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c');
    
        if (supportsNullValues()) {
          assertEquals((Character) 'b', table.put("bar", 1, nullableCellValue(null)));
          assertNull(table.get("bar", 1));
        } else {
          assertThrows(NullPointerException.class, () -> table.put("bar", 1, nullableCellValue(null)));
        }
      }
    
      public void testPutAllTable() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  2. compat/maven-embedder/src/test/java/org/apache/maven/cli/props/MavenPropertiesLoaderTest.java

            Files.writeString(defPath, "foo=bar");
            Path envPath = userDirectory.resolve("env-ci.properties");
            Files.writeString(envPath, "foo=bar-env\nfoo-env=bar\n");
    
            Properties p = new Properties();
            p.put("user.home", userDirectory.toString());
            MavenPropertiesLoader.loadProperties(p, mavenUserProps, p::getProperty, false);
            assertEquals("bar", p.getProperty("foo"));
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/RegularImmutableTableTest.java

    public class RegularImmutableTableTest extends AbstractImmutableTableTest {
      private static final ImmutableSet<Cell<Character, Integer, String>> CELLS =
          ImmutableSet.of(
              immutableCell('a', 1, "foo"), immutableCell('b', 1, "bar"), immutableCell('a', 2, "baz"));
    
      private static final ImmutableSet<Character> ROW_SPACE = ImmutableSet.of('a', 'b');
    
      private static final ImmutableSet<Integer> COLUMN_SPACE = ImmutableSet.of(1, 2);
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/ForwardingConcurrentMapTest.java

        assertEquals(Integer.valueOf(1), map.get("foo"));
        assertNull(map.putIfAbsent("bar", 3));
        assertEquals(Integer.valueOf(3), map.get("bar"));
      }
    
      public void testRemove() {
        TestMap map = new TestMap();
        map.put("foo", 1);
        assertFalse(map.remove("foo", 2));
        assertFalse(map.remove("bar", 1));
        assertEquals(Integer.valueOf(1), map.get("foo"));
        assertTrue(map.remove("foo", 1));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 2.4K bytes
    - Viewed (0)
  5. tests/main.py

        if query is None:
            return "foo bar"
        return f"foo bar {query}"
    
    
    @app.get("/query/int/default")
    def get_query_type_int_default(query: int = 10):
        return f"foo bar {query}"
    
    
    @app.get("/query/param")
    def get_query_param(query=Query(default=None)):
        if query is None:
            return "foo bar"
        return f"foo bar {query}"
    
    
    @app.get("/query/param-required")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 21:56:59 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/MultimapsTest.java

        assertEquals(3, multimap.size());
        assertTrue(multimap.containsKey("bar"));
        assertEquals(singleton(2), multimap.removeAll("bar"));
        assertEquals(2, multimap.size());
        assertFalse(multimap.containsKey("bar"));
      }
    
      public void testForMapAsMap() {
        Map<String, Integer> map = Maps.newHashMap();
        map.put("foo", 1);
        map.put("bar", 2);
        Map<String, Collection<Integer>> asMap = Multimaps.forMap(map).asMap();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 38.4K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/crawler/transformer/FessFileTransformerTest.java

            exp = "file://C .doc";
            assertEquals(exp, transformer.decodeUrlAsName(url, true));
    
            url = "http://example.com/foo/" + encodeUrl("#") + "/@@bar/index.html#fragment?foo=bar";
            exp = "http://example.com/foo/#/@@bar/index.html#fragment?foo=bar";
            assertEquals(exp, transformer.decodeUrlAsName(url, false));
        }
    
        public void test_getFileName_ok() throws Exception {
            String url, exp;
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Jul 04 06:20:49 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  8. tests/test_serialize_response_dataclass.py

    
    @app.get("/items/validlist", response_model=List[Item])
    def get_validlist():
        return [
            {"name": "foo", "date": datetime(2021, 7, 26)},
            {"name": "bar", "date": datetime(2021, 7, 26), "price": 1.0},
            {
                "name": "baz",
                "date": datetime(2021, 7, 26),
                "price": 2.0,
                "owner_ids": [1, 2, 3],
            },
        ]
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Aug 26 13:56:47 UTC 2022
    - 4.9K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/ImmutableSetMultimapTest.java

        builder.putAll("foo", Arrays.asList(1, 2, 3));
        builder.putAll("bar", Arrays.asList(4, 5));
        builder.putAll("foo", Arrays.asList(6, 7));
        Multimap<String, Integer> multimap = builder.build();
        assertEquals(ImmutableSet.of(1, 2, 3, 6, 7), multimap.get("foo"));
        assertEquals(ImmutableSet.of(4, 5), multimap.get("bar"));
        assertEquals(7, multimap.size());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_response_model/test_tutorial006_py310.py

    
    @needs_py310
    def test_read_item_name(client: TestClient):
        response = client.get("/items/bar/name")
        assert response.status_code == 200, response.text
        assert response.json() == {"name": "Bar", "description": "The Bar fighters"}
    
    
    @needs_py310
    def test_read_item_public_data(client: TestClient):
        response = client.get("/items/bar/public")
        assert response.status_code == 200, response.text
        assert response.json() == {
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Aug 04 20:47:07 UTC 2023
    - 6.2K bytes
    - Viewed (0)
Back to top