Skip to content

Commit 68b6257

Browse files
authored
Test for cumsum(sign(x)) (#299)
1 parent 8257230 commit 68b6257

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/SpacesTest.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,14 @@ using ApproxFunBaseTest: testbandedoperator, testraggedbelowoperator,
7272
@test norm(sc-(c+s))<100eps()
7373

7474
@test sc * sc == sc^2
75+
76+
@testset "ApproxFun.jl issue #905" begin
77+
x = Fun()
78+
y = cumsum(sign(x))
79+
@test y(-1) 0 atol=eps()
80+
@test y(0) -1
81+
@test y(1) 0 atol=eps()
82+
end
7583
end
7684

7785
@testset "max/min creates breakpoints" begin

0 commit comments

Comments
 (0)