summaryrefslogtreecommitdiff
path: root/libgo/go/math/cmplx/cmath_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/math/cmplx/cmath_test.go')
-rw-r--r--libgo/go/math/cmplx/cmath_test.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/libgo/go/math/cmplx/cmath_test.go b/libgo/go/math/cmplx/cmath_test.go
index d904be880d8..7a5c485a310 100644
--- a/libgo/go/math/cmplx/cmath_test.go
+++ b/libgo/go/math/cmplx/cmath_test.go
@@ -759,6 +759,14 @@ func TestTanh(t *testing.T) {
}
}
+// See issue 17577
+func TestInfiniteLoopIntanSeries(t *testing.T) {
+ want := Inf()
+ if got := Cot(0); got != want {
+ t.Errorf("Cot(0): got %g, want %g", got, want)
+ }
+}
+
func BenchmarkAbs(b *testing.B) {
for i := 0; i < b.N; i++ {
Abs(complex(2.5, 3.5))