Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 92 for test_add (0.2 sec)

  1. tests/test_tutorial/test_testing/test_main_b_an_py310.py

    from ...utils import needs_py310
    
    
    @needs_py310
    def test_app():
        from docs_src.app_testing.app_b_an_py310 import test_main
    
        test_main.test_create_existing_item()
        test_main.test_create_item()
        test_main.test_create_item_bad_token()
        test_main.test_read_nonexistent_item()
        test_main.test_read_item()
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Wed Mar 13 19:07:10 UTC 2024
    - 360 bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/samples/templates/java-junit5-test-for-list-library/src/test/java/org/gradle/sample/list/LinkedListTest.java

    public class LinkedListTest {
        @Test public void testConstructor() {
            LinkedList list = new LinkedList();
            assertEquals(0, list.size());
        }
    
        @Test public void testAdd() {
            LinkedList list = new LinkedList();
    
            list.add("one");
            assertEquals(1, list.size());
            assertEquals("one", list.get(0));
    
            list.add("two");
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  3. pkg/kubelet/kuberuntime/labels_test.go

    		Name:                   "test_container",
    		TerminationMessagePath: "/somepath",
    		Lifecycle:              lifecycle,
    	}
    	pod := &v1.Pod{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:                       "test_pod",
    			Namespace:                  "test_pod_namespace",
    			UID:                        "test_pod_uid",
    			DeletionGracePeriodSeconds: &deletionGracePeriod,
    		},
    		Spec: v1.PodSpec{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 22:43:36 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/test/testdata/short_test.go

    	}
    }
    
    // TestShortCircuit tests OANDAND and OOROR expressions and short circuiting.
    func TestShortCircuit(t *testing.T) {
    	testAnd(t, false, false, false)
    	testAnd(t, false, true, false)
    	testAnd(t, true, false, false)
    	testAnd(t, true, true, true)
    
    	testOr(t, false, false, false)
    	testOr(t, false, true, true)
    	testOr(t, true, false, true)
    	testOr(t, true, true, true)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 23 06:40:04 UTC 2020
    - 1.5K bytes
    - Viewed (0)
  5. fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/JodExtractorTest.java

            assertTrue(content.contains("ใƒ†ใ‚นใƒˆ"));
        }
    
        public void test_getText_ooow_as() {
            InputStream in = ResourceUtil.getResourceAsStream("extractor/ooo/test_as.odt");
            Map<String, String> params = new HashMap<String, String>();
            params.put("resourceName", "test_as.odt");
            ExtractData extractData = jodExtractor.getText(in, params);
            String content = extractData.getContent();
            CloseableUtil.closeQuietly(in);
    Registered: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_wsgi/test_tutorial001.py

    client = TestClient(app)
    
    
    def test_flask():
        response = client.get("/v1/")
        assert response.status_code == 200, response.text
        assert response.text == "Hello, World from Flask!"
    
    
    def test_app():
        response = client.get("/v2")
        assert response.status_code == 200, response.text
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Jul 09 18:06:12 UTC 2020
    - 436 bytes
    - Viewed (0)
  7. platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/javaapplication/multi/list/junit5/LinkedListTest.java.template

    import static org.junit.jupiter.api.Assertions.*;
    
    class LinkedListTest {
        @Test void testConstructor() {
            LinkedList list = new LinkedList();
            assertEquals(0, list.size());
        }
    
        @Test void testAdd() {
            LinkedList list = new LinkedList();
    
            list.add("one");
            assertEquals(1, list.size());
            assertEquals("one", list.get(0));
    
            list.add("two");
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 19:39:09 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  8. platforms/native/testing-native/src/integTest/groovy/org/gradle/nativeplatform/test/cpp/plugins/CppUnitTestWithApplicationIntegrationTest.groovy

            """
            file("src/test/cpp/test_app.cpp") << """
                #include <app.h>
                #include <tests.h>
                int main() {
                    return app();
                }
            """
        }
    
        @Override
        protected void changeTestImplementation() {
            file("src/test/cpp/test_app.cpp") << """
                void test_func() { }
            """
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_testing/test_main_b_py310.py

    from ...utils import needs_py310
    
    
    @needs_py310
    def test_app():
        from docs_src.app_testing.app_b_py310 import test_main
    
        test_main.test_create_existing_item()
        test_main.test_create_item()
        test_main.test_create_item_bad_token()
        test_main.test_read_nonexistent_item()
        test_main.test_read_item()
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Wed Mar 13 19:07:10 UTC 2024
    - 357 bytes
    - Viewed (0)
  10. platforms/native/language-native/src/test/groovy/org/gradle/language/plugins/NativeBasePluginTest.groovy

            linkTask.linkedFile.get().asFile == projectDir.file("build/exe/windows/debug/test_app.exe")
    
            def stripTask = project.tasks['stripSymbolsWindowsDebug']
            stripTask instanceof StripSymbols
            stripTask.binaryFile.get().asFile == linkTask.linkedFile.get().asFile
            stripTask.outputFile.get().asFile == projectDir.file("build/exe/windows/debug/stripped/test_app.exe")
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 20.9K bytes
    - Viewed (0)
Back to top