Debian Codegraph @

tests/fixedbugs/issue387/issue387_test.go

raw symbols SCIP
1 package issue387
2
3 import (
4 "testing"
5 )
6
7 //go:generate go run asm.go -out issue387.s -stubs stub.go
8
9 func TestFloat32(t *testing.T) {
10 for i := 0; i < 10; i++ {
11 got := Float32(i)
12 expect := float32(i)
13 if got != expect {
14 t.Fatalf("Float32(%d) = %#v; expect %#v", i, got, expect)
15 }
16 }
17 }
18
19 func TestFloat64(t *testing.T) {
20 for i := 0; i < 10; i++ {
21 got := Float64(i)
22 expect := float64(i)
23 if got != expect {
24 t.Fatalf("Float64(%d) = %#v; expect %#v", i, got, expect)
25 }
26 }
27 }