Debian Codegraph @

src/math/cmplx/huge_test.go

raw
1 // Copyright 2020 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
4
5 // Disabled for s390x because it uses assembly routines that are not
6 // accurate for huge arguments.
7
8 //go:build !s390x
9
10 package cmplx
11
12 import (
13 "testing"
14 )
15
16 func TestTanHuge(t *testing.T) {
17 for i, x := range hugeIn {
18 if f := Tan(x); !cSoclose(tanHuge[i], f, 3e-15) {
19 t.Errorf("Tan(%g) = %g, want %g", x, f, tanHuge[i])
20 }
21 }
22 }