- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 482 for testu (0.05 sec)
-
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) -
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) -
test/fixedbugs/issue5755.dir/main.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 28 21:29:13 UTC 2013 - 385 bytes - Viewed (0) -
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) -
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) -
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) -
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) -
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) -
test/fixedbugs/issue13799.go
for iter := 0; ; iter++ { if iter%50 == 0 { fmt.Println(iter) // ERROR "iter escapes to heap$" "... argument does not escape$" } test1(iter) test2(iter) test3(iter) test4(iter) test5(iter) test6(iter) } } func test1(iter int) { const maxI = 500 m := make(map[int][]int) // ERROR "make\(map\[int\]\[\]int\) escapes to heap$"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 08 18:50:24 UTC 2023 - 4.9K bytes - Viewed (0) -
test/fixedbugs/issue4585.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 2.5K bytes - Viewed (0)