Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 281 for tst2 (0.2 sec)

  1. test/fixedbugs/issue8004.go

    	H *reflect.SliceHeader
    	P *[]int
    }
    
    func test2() {
    	var all []T
    	for i := 0; i < 100; i++ {
    		p := new([]int)
    		*p = append(*p, 1, 2, 3, 4)
    		h := (*reflect.SliceHeader)(unsafe.Pointer(p))
    		all = append(all, T{H: h}, T{P: p})
    	}
    	runtime.GC()
    	for i := 0; i < 100; i++ {
    		p := *all[2*i+1].P
    		if p[0] != 1 || p[1] != 2 || p[2] != 3 || p[3] != 4 {
    			println("BUG test2: bad slice at index", i, p[0], p[1], p[2], p[3])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 1.1K bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/snippets/swift/testFiltering/kotlin/src/test/swift/SomeIntegTest.swift

    import XCTest
    
    class SomeIntegTest: XCTestCase {
        public static var allTests = [
            ("test1", test1),
            ("test2", test2)
        ]
        func test1() {}
        func test2() {}
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 183 bytes
    - Viewed (0)
  3. platforms/native/language-native/src/test/groovy/org/gradle/language/nativeplatform/internal/incremental/DefaultSourceIncludesResolverTest.groovy

            includePaths << includeDir
    
            macros << macro("TEST", '"test.h"')
            macroFunctions << macroFunction("TEST1", "TEST")
            macros << macro("TEST2", "TEST1()")
            macros << macro("TEST3", "TEST2")
            macros << unresolvableMacro("IGNORE")
    
            expect:
            def result = resolve(include('TEST3'))
            result.complete
            result.files.file as List == [header1]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 16.8K bytes
    - Viewed (0)
  4. platforms/jvm/testing-jvm/src/test/groovy/org/gradle/api/tasks/testing/TestReportTest.groovy

            def test1 = test("test1")
            def test2 = test("test2")
            def test3 = test("test3")
    
            when:
            reportTask.testResults.from(test1.binaryResultsDirectory)
            reportTask.testResults.from([[test2.binaryResultsDirectory], test3.binaryResultsDirectory])
    
            then:
            reportTask.testResults.files as List == [test1, test2, test3]*.binaryResultsDirectory*.getAsFile()*.get()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  5. platforms/software/testing-base/src/test/groovy/org/gradle/api/internal/tasks/testing/processors/RestartEveryNTestClassProcessorTest.groovy

            processor.processTestClass(test1)
            processor.processTestClass(test2)
    
            then:
            1 * factory.create() >> delegate
            1 * delegate.startProcessing(resultProcessor)
            then:
            1 * delegate.processTestClass(test1)
            then:
            1 * delegate.processTestClass(test2)
            then:
            1 * delegate.stop()
            0 * _._
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  6. test/fixedbugs/bug286.go

    var error_ bool
    
    type T int
    
    func (t *T) f() { callee = "f" }
    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" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 1.5K bytes
    - Viewed (0)
  7. test/fixedbugs/issue65962.go

    // run
    
    // Copyright 2024 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    func main() {
    	test1()
    	test2()
    }
    
    type I interface {
    	f()
    	g()
    	h()
    }
    
    //go:noinline
    func ld[T any]() {
    	var x I
    	if _, ok := x.(T); ok {
    	}
    }
    
    func isI(x any) {
    	_ = x.(I)
    }
    
    func test1() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 18:30:40 UTC 2024
    - 625 bytes
    - Viewed (0)
  8. tests/test_tutorial/test_request_files/test_tutorial003.py

        path.write_bytes(b"<file content>")
        path2 = tmp_path / "test2.txt"
        path2.write_bytes(b"<file content2>")
    
        client = TestClient(app)
        with path.open("rb") as file, path2.open("rb") as file2:
            response = client.post(
                "/files/",
                files=(
                    ("files", ("test.txt", file)),
                    ("files", ("test2.txt", file2)),
                ),
            )
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  9. platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/toolchain/internal/DefaultNativeToolChainRegistryTest.groovy

            def defaultToolChain1 = unavailableToolChain("test1")
            def defaultToolChain2 = availableToolChain("test2")
            def defaultToolChain3 = availableToolChain("test3")
    
            when:
            registry.registerDefaultToolChain("test1", TestNativeToolChain)
            registry.registerDefaultToolChain("test2", TestNativeToolChain)
            registry.registerDefaultToolChain("test3", TestNativeToolChain)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/stablehlo/tests/legalize-inplaceupdate.mlir

    // CHECK-DAG: %[[CST0:.*]] = stablehlo.constant dense<1> : tensor<i32>
    // CHECK-DAG: %[[CST1:.*]] = stablehlo.constant dense<0> : tensor<i32>
    // CHECK-DAG: %[[CST2:.*]] = stablehlo.constant dense<2.000000e+00> : tensor<1x1x2xf32>
    // CHECK: %[[RES:.*]] = stablehlo.dynamic_update_slice %arg0, %[[CST2]], %[[CST0]], %[[CST1]], %[[CST1]] : (tensor<2x1x2xf32>, tensor<1x1x2xf32>, tensor<i32>, tensor<i32>, tensor<i32>) -> tensor<2x1x2xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Dec 16 05:09:09 UTC 2022
    - 993 bytes
    - Viewed (0)
Back to top