Files
avo/tests/fixedbugs/issue387/issue387_test.go
Michael McLoughlin b985ff5775 ci: bump to go 1.23 (#453)
Upgrade to Go 1.23.

Upgrade also requires bumping `golangci-lint` to v1.62.2, and upgrading
third-party test versions for some failing cases.
2024-12-22 16:01:48 -08:00

28 lines
478 B
Go

package issue387
import (
"testing"
)
//go:generate go run asm.go -out issue387.s -stubs stub.go
func TestFloat32(t *testing.T) {
for i := range 10 {
got := Float32(i)
expect := float32(i)
if got != expect {
t.Fatalf("Float32(%d) = %#v; expect %#v", i, got, expect)
}
}
}
func TestFloat64(t *testing.T) {
for i := range 10 {
got := Float64(i)
expect := float64(i)
if got != expect {
t.Fatalf("Float64(%d) = %#v; expect %#v", i, got, expect)
}
}
}