- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 65 for test_sum (0.16 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
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) -
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) -
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) -
pkg/config/analysis/analyzers/testdata/multicluster-unknown-serviceregistry.yaml
server: https://1.2.3.4 name: gke_istio-test_us-central1-f_istio-remote contexts: - context: cluster: gke_istio-test_us-central1-f_istio-remote user: gke_istio-test_us-central1-f_istio-remote name: gke_istio-test_us-central1-f_istio-remote current-context: gke_istio-test_us-central1-f_istio-remote kind: Config preferences: {} users:
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Nov 17 12:28:05 UTC 2021 - 762 bytes - Viewed (0)