Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 69 for test_sum (0.2 sec)

  1. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/CHelloWorldApp.groovy

    }
    
    int clean_test(void) {
        return 0;
    }
    
    void test_sum(void) {
      CU_ASSERT(sum(0, 2) == 2);
    #ifndef ONE_TEST
      CU_ASSERT(sum(0, -2) == -2);
      CU_ASSERT(sum(2, 2) == 4);
    #endif
    }
    
    void gradle_cunit_register() {
        CU_pSuite pSuiteMath = CU_add_suite("hello test", init_test, clean_test);
        CU_add_test(pSuiteMath, "test_sum", test_sum);
    }
                        """),
                ]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  2. platforms/native/testing-native/src/integTest/groovy/org/gradle/nativeplatform/test/googletest/GoogleTestIntegrationTest.groovy

            def testResults = new GoogleTestTestResults(file("build/test-results/helloTest/test_detail.xml"))
            testResults.suiteNames == ['HelloTest']
            testResults.suites['HelloTest'].passingTests == ['test_sum']
            testResults.suites['HelloTest'].failingTests == []
            testResults.checkTestCases(1, 1, 0)
        }
    
        @ToBeFixedForConfigurationCache
        def "assemble does not build or run tests"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 16.1K bytes
    - Viewed (0)
  3. platforms/native/testing-native/src/integTest/groovy/org/gradle/nativeplatform/test/cunit/CUnitIntegrationTest.groovy

            def testResults = new CUnitTestResults(file("build/test-results/helloTest/CUnitAutomated-Results.xml"))
            testResults.suiteNames == ['hello test']
            testResults.suites['hello test'].passingTests == ['test_sum']
            testResults.suites['hello test'].failingTests == []
            testResults.checkTestCases(1, 1, 0)
            testResults.checkAssertions(3, 3, 0)
        }
    
        @ToBeFixedForConfigurationCache
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 17K bytes
    - Viewed (0)
  4. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/CppHelloWorldApp.groovy

                List<SourceFile> sourceFiles = [
                        sourceFile("cpp", "test.cpp", """
    #include "gtest/gtest.h"
    #include "hello.h"
    
    using namespace testing;
    
    TEST(HelloTest, test_sum) {
      ASSERT_TRUE(sum(0, 2) == 2);
    #ifndef ONE_TEST
      ASSERT_TRUE(sum(0, -2) == -2);
      ASSERT_TRUE(sum(2, 2) == 4);
    #endif
    }
    
    int main(int argc, char **argv) {
      testing::InitGoogleTest(&argc, argv);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 5K bytes
    - Viewed (0)
  5. pkg/monitoring/monitoring_test.go

    	rh := &testRecordHook{}
    	monitoring.RegisterRecordHook(testSum.Name(), rh)
    
    	testSum.With(name.Value("foo"), kind.Value("bart")).Increment()
    	testSum.With(name.Value("baz"), kind.Value("bart")).Record(45)
    
    	mt.Assert(testSum.Name(), map[string]string{"name": "foo", "kind": "bart"}, monitortest.Exactly(1))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Sep 13 16:04:48 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  6. src/regexp/testdata/testregex.c

    #define TEST_ARE		0x00000001
    #define TEST_BRE		0x00000002
    #define TEST_ERE		0x00000004
    #define TEST_KRE		0x00000008
    #define TEST_LRE		0x00000010
    #define TEST_SRE		0x00000020
    
    #define TEST_EXPAND		0x00000100
    #define TEST_LENIENT		0x00000200
    
    #define TEST_QUERY		0x00000400
    #define TEST_SUB		0x00000800
    #define TEST_UNSPECIFIED	0x00001000
    #define TEST_VERIFY		0x00002000
    #define TEST_AND		0x00004000
    #define TEST_OR			0x00008000
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 51.3K bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/mod_get_go_file.txt

    [symlink] symlink test_sym.go -> test.go
    [symlink] ! go get test_sym.go
    [symlink] stderr 'go: test_sym.go: arguments must be package or module paths'
    [symlink] rm test_sym.go
    
    # argument has .go suffix, is a symlink and exists in sub-directory
    [symlink] symlink test/test_sym.go -> test.go
    [symlink] ! go get test/test_sym.go
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 28 17:19:08 UTC 2021
    - 2.3K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/base/EnumsTest.java

        assertThat(Enums.getIfPresent(TestEnum.class, "HONDA")).isPresent();
        assertThat(Enums.getIfPresent(TestEnum.class, "POODLE")).isPresent();
    
        assertThat(Enums.getIfPresent(TestEnum.class, "CHEETO")).hasValue(TestEnum.CHEETO);
        assertThat(Enums.getIfPresent(TestEnum.class, "HONDA")).hasValue(TestEnum.HONDA);
        assertThat(Enums.getIfPresent(TestEnum.class, "POODLE")).hasValue(TestEnum.POODLE);
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 29 16:29:37 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  9. platforms/core-configuration/base-services-groovy/src/test/groovy/org/gradle/api/internal/coerce/StringToEnumTransformerTest.groovy

            [String]         | [TestEnum.ABC]        | "one arg"
            [Long, TestEnum] | [TestEnum.ABC, "abc"] | "two args"
        }
    
        def "exception thrown when coercing invalid string to enum"() {
            when:
            transformer.transformValue(TestEnum, "invalid")
    
            then:
            def e = thrown IllegalArgumentException
            TestEnum.values().every { e.message.contains(it.name()) }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 10:00:26 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  10. src/cmd/go/script_test.go

    		}
    	}
    	if gomodIdx < 0 {
    		return false
    	}
    
    	var cmd string
    	switch *testSum {
    	case "tidy":
    		cmd = "go mod tidy"
    	case "listm":
    		cmd = "go list -m -mod=mod all"
    	case "listall":
    		cmd = "go list -mod=mod all"
    	default:
    		t.Fatalf(`unknown value for -testsum %q; may be "tidy", "listm", or "listall"`, *testSum)
    	}
    
    	log := new(strings.Builder)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 18:15:22 UTC 2024
    - 12.2K bytes
    - Viewed (0)
Back to top