huge_test.go 496 B

12345678910111213141516171819202122
  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. // Disabled for s390x because it uses assembly routines that are not
  5. // accurate for huge arguments.
  6. //go:build !s390x
  7. package cmplx
  8. import (
  9. "testing"
  10. )
  11. func TestTanHuge(t *testing.T) {
  12. for i, x := range hugeIn {
  13. if f := Tan(x); !cSoclose(tanHuge[i], f, 3e-15) {
  14. t.Errorf("Tan(%g) = %g, want %g", x, f, tanHuge[i])
  15. }
  16. }
  17. }