Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 649 for testu (0.08 sec)

  1. test/ken/shift.go

    	testi( int(1234) >>    5, 0,1,1);
    
    	testi(int(-1234) <<    0, 1,0,0);
    	testi(int(-1234) >>    0, 1,0,1);
    	testi(int(-1234) <<    5, 1,1,0);
    	testi(int(-1234) >>    5, 1,1,1);
    
    	testu(uint(5678) <<    0, 2,0,0);
    	testu(uint(5678) >>    0, 2,0,1);
    	testu(uint(5678) <<    5, 2,1,0);
    	testu(uint(5678) >>    5, 2,1,1);
    
    	/*
    	 * test variable evaluations
    	 */
    	pass = "var";	// variable part
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 05:24:24 UTC 2012
    - 2.3K bytes
    - Viewed (0)
  2. src/runtime/softfloat64_test.go

    	}
    }
    
    func test(t *testing.T, op string, hw, sw func(float64, float64) float64, all []float64) {
    	for _, f := range all {
    		for _, g := range all {
    			h := hw(f, g)
    			s := sw(f, g)
    			if !same(h, s) {
    				err(t, "%g %s %g = sw %g, hw %g\n", f, op, g, s, h)
    			}
    			testu(t, "to32", trunc32, to32sw, h)
    			testu(t, "to64", trunc32, to64sw, h)
    			testu(t, "toint64", hwint64, toint64sw, h)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 4K bytes
    - Viewed (0)
  3. test/fixedbugs/issue5755.dir/main.go

    // license that can be found in the LICENSE file.
    
    package main
    
    import "./a"
    
    func main() {
    	a.Test1("frumious")
    	a.Test2("frumious")
    	a.Test3("frumious")
    	a.Test4("frumious")
    
    	a.Test5(nil)
    	a.Test6(nil)
    	a.Test7(nil)
    	a.Test8(nil)
    	a.Test9(0)
    
    	a.TestBar()
    	a.IsBaz(nil)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 28 21:29:13 UTC 2013
    - 385 bytes
    - Viewed (0)
  4. test/ken/embed.go

    	if s.test5() != s.a5 {
    		println("t4", 5)
    		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() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 03 17:03:15 UTC 2016
    - 4.3K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/maven/MavenScopesIntegrationTest.groovy

            def notRequired = mavenRepo.module('test', 'dont-include-me', '1.0')
            def m1 = mavenRepo.module('test', 'test1', '1.0').publish()
            def m2 = mavenRepo.module('test', 'test2', '1.0').publish()
            def m3 = mavenRepo.module('test', 'test3', '1.0').publish()
            def m4 = mavenRepo.module('test', 'test4', '1.0').publish()
            def m5 = mavenRepo.module('test', 'test5', '1.0')
                .dependsOn(m1, scope: 'compile')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 14.4K bytes
    - Viewed (0)
  6. test/recover1.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Test of recover during recursive panics.
    // Here be dragons.
    
    package main
    
    import "runtime"
    
    func main() {
    	test1()
    	test2()
    	test3()
    	test4()
    	test5()
    	test6()
    	test7()
    }
    
    func die() {
    	runtime.Breakpoint()	// can't depend on panic
    }
    
    func mustRecover(x interface{}) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 2.5K bytes
    - Viewed (0)
  7. test/recover2.go

    // license that can be found in the LICENSE file.
    
    // Test of recover for run-time errors.
    
    // TODO(rsc):
    //	null pointer accesses
    
    package main
    
    import "strings"
    
    var x = make([]byte, 10)
    
    func main() {
    	test1()
    	test2()
    	test3()
    	test4()
    	test5()
    	test6()
    	test7()
    }
    
    func mustRecover(s string) {
    	v := recover()
    	if v == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 03 20:41:29 UTC 2019
    - 1.2K bytes
    - Viewed (0)
  8. test/fixedbugs/issue5755.dir/a.go

    func (f foo9) F() { return }
    
    func Test1(s string) I  { return foo1(s) }
    func Test2(s string) I  { return foo2(s) }
    func Test3(s string) I  { return foo3(s) }
    func Test4(s string) I  { return foo4(s) }
    func Test5(s []byte) I  { return foo5(s) }
    func Test6(s []rune) I  { return foo6(s) }
    func Test7(s []uint8) I { return foo7(s) }
    func Test8(s []int32) I { return foo8(s) }
    func Test9(s int) I     { return foo9(s) }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 28 21:29:13 UTC 2013
    - 1.3K bytes
    - Viewed (0)
  9. test/recover.go

    // license that can be found in the LICENSE file.
    
    // Test of basic recover functionality.
    
    package main
    
    import (
    	"os"
    	"reflect"
    	"runtime"
    )
    
    func main() {
    	// go.tools/ssa/interp still has:
    	// - some lesser bugs in recover()
    	// - incomplete support for reflection
    	interp := os.Getenv("GOSSAINTERP") != ""
    
    	test1()
    	test1WithClosures()
    	test2()
    	test3()
    	if !interp {
    		test4()
    	}
    	test5()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 10.6K bytes
    - Viewed (0)
  10. test/ken/chan.go

    	test5(c)
    	wait()
    
    	test6(c)
    	wait()
    }
    
    // run all test with 4 buffser sizes
    func main() {
    
    	tests(0)
    	tests(1)
    	tests(10)
    	tests(100)
    
    	t := 4 * // buffer sizes
    		(4*4 + // tests 1,2,3,4 channels
    			8 + // test 5 channels
    			12) * // test 6 channels
    		76 // sends/recvs on a channel
    
    	if tots != t || totr != t {
    		print("tots=", tots, " totr=", totr, " sb=", t, "\n")
    		os.Exit(1)
    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