Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 217 for TestM1 (0.1 sec)

  1. src/cmd/go/internal/gover/gover_test.go

    	{"1.99999999999999998", "1.99999999999999999", -1},
    }
    
    func TestLang(t *testing.T) { test1(t, langTests, "Lang", Lang) }
    
    var langTests = []testCase1[string, string]{
    	{"1.2rc3", "1.2"},
    	{"1.2.3", "1.2"},
    	{"1.2", "1.2"},
    	{"1", "1"},
    	{"1.999testmod", "1.999"},
    }
    
    func TestIsLang(t *testing.T) { test1(t, isLangTests, "IsLang", IsLang) }
    
    var isLangTests = []testCase1[string, bool]{
    	{"1.2rc3", false},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 06 23:20:32 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  2. test/fixedbugs/bug286.go

    func (i *T) g() { callee = "g" }
    
    // test1 and test2 are the same except that in the interface J
    // the entries are swapped. test2 and test3 are the same except
    // that in test3 the interface J is declared outside the function.
    //
    // Error: test2 calls g instead of f
    
    func test1(x I) {
    	type J interface {
    		I
    		g()
    	}
    	x.(J).f()
    	if callee != "f" {
    		println("test1 called", callee)
    		error_ = true
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 1.5K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/validator_test.go

    						Expression: "this.expression == unit.test",
    						Message:    "test1",
    					},
    				},
    			},
    			messageEvaluations: []cel.EvaluationResult{
    				{
    					Error: &apiservercel.Error{Type: apiservercel.ErrorTypeInvalid},
    				},
    			},
    			policyDecision: []PolicyDecision{
    				{
    					Action:  ActionDeny,
    					Message: "test1", // original message used
    					Reason:  forbiddenReason,
    				},
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  4. pkg/registry/core/componentstatus/rest_test.go

    			*(createTestStatus("test1", api.ConditionUnknown, "", "fizzbuzz error"))},
    	}
    	if e, a := expect, got; !reflect.DeepEqual(e, a) {
    		t.Errorf("Got unexpected object. Diff: %s", cmp.Diff(e, a))
    	}
    }
    
    func TestGet_NoError(t *testing.T) {
    	r := NewTestREST(testResponse{result: probe.Success, data: "ok"})
    	got, err := r.Get(genericapirequest.NewContext(), "test1", &metav1.GetOptions{})
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 13 08:10:29 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  5. test/ken/embed.go

    		panic("fail")
    	}
    	if s.test6() != s.a6 {
    		println("t4", 6)
    		panic("fail")
    	}
    	if s.test7() != s.a7 {
    		println("t4", 7)
    		panic("fail")
    	}
    
    	// call interface
    	if i.test1() != s.test1() {
    		println("t5", 1)
    		panic("fail")
    	}
    	if i.test2() != s.test2() {
    		println("t5", 2)
    		panic("fail")
    	}
    	if i.test3() != s.test3() {
    		println("t5", 3)
    		panic("fail")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 03 17:03:15 UTC 2016
    - 4.3K bytes
    - Viewed (0)
  6. platforms/software/version-control/src/test/groovy/org/gradle/vcs/internal/DefaultSourceControlTest.groovy

            repo != null
            def repo2 = sourceControl.gitRepository(new URI("https://gradle.org/test2"))
            repo2 != repo
        }
    
        def "can register and configure a Git repository"() {
            def action = Mock(Action)
    
            when:
            def repo = sourceControl.gitRepository(new URI("https://gradle.org/test1"), action)
            repo != null
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  7. tensorflow/cc/experimental/libtf/tests/value_test.cc

      ASSERT_EQ(value1b.s(), value1a.s());
      TaggedValue value2("string2");
      ASSERT_NE(value1a.s(), value2.s());
      ASSERT_STREQ(value1a.s(), "string1");
      ASSERT_STREQ(value2.s(), "string2");
    }
    
    TEST(Test1, TestDict) {
      TaggedValue s1("test1");
      TaggedValue s2("test2");
      TaggedValue d = TaggedValue::Dict();
      d.dict()[s2] = TaggedValue(6.f);
      std::stringstream stream;
      stream << d;
      ASSERT_EQ(stream.str(), "{test2: 6, }");
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Sep 01 11:18:25 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  8. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r25/GradleTaskGetGroupCrossVersionSpec.groovy

    class GradleTaskGetGroupCrossVersionSpec extends ToolingApiSpecification {
    
        def "provide getGroup on Task using GradleProject"() {
            file("build.gradle") << '''
    task test1(group:'task group 1')
    task test2(group:'task group 2')
    '''
    
            when:
            def gradleProject = withConnection { ProjectConnection connection ->
                connection.getModel(GradleProject)
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  9. platforms/software/testing-base/src/test/groovy/org/gradle/api/internal/tasks/testing/logging/TestCountLoggerTest.groovy

            then:
            1 * progressLogger.completed()
        }
    
        def logsCountOfTestsExecuted() {
            TestDescriptor test1 = test()
            TestDescriptor test2 = test()
    
            logger.beforeSuite(rootSuite)
    
            when:
            logger.afterTest(test1, result())
            logger.beforeTest(test2)
    
            then:
            1 * progressLogger.progress('1 test completed')
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  10. test/ken/chan.go

    func wait() {
    	runtime.Gosched()
    	for changeNproc(0) != 0 {
    		runtime.Gosched()
    	}
    }
    
    // run all tests with specified buffer size
    func tests(c int) {
    	ca := mkchan(c, 4)
    	test1(ca[0])
    	test1(ca[1])
    	test1(ca[2])
    	test1(ca[3])
    	wait()
    
    	test2(c)
    	wait()
    
    	test3(c)
    	wait()
    
    	test4(c)
    	wait()
    
    	test5(c)
    	wait()
    
    	test6(c)
    	wait()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 05:24:24 UTC 2012
    - 4.7K bytes
    - Viewed (0)
Back to top