@@ -4,7 +4,7 @@ using ApproxFunOrthogonalPolynomials
44using SpecialFunctions
55using LinearAlgebra
66using Test
7- using DomainSets: UnionDomain
7+ using DomainSets: UnionDomain, setdiffdomain
88using ApproxFunBase: space, SpaceOperator
99using ApproxFunBaseTest: testbandedoperator, testraggedbelowoperator,
1010 testtransforms, testfunctional
@@ -90,7 +90,7 @@ using ApproxFunBaseTest: testbandedoperator, testraggedbelowoperator,
9090 @test norm (max (x,x)- x)< 100 eps ()
9191 @test norm (min (x,x)- x)< 100 eps ()
9292
93- f3= Fun (x-> x< - 0.05 ? - 1.0 : (x< 0.45 ? 4 * (x- .2 ) : 1 ), (- 1 .. 1 ) \ [- 0.05 ,0.45 ])
93+ f3= Fun (x-> x< - 0.05 ? - 1.0 : (x< 0.45 ? 4 * (x- .2 ) : 1 ), setdiffdomain (- 1 .. 1 , [- 0.05 ,0.45 ]) )
9494 @test norm (f2 .(range (- 1 ,stop= 1 ,length= 10 ))- f3 .(range (- 1 ,stop= 1 ,length= 10 ))) < 4 eps ()
9595 end
9696
@@ -332,7 +332,7 @@ using ApproxFunBaseTest: testbandedoperator, testraggedbelowoperator,
332332 end
333333
334334 @testset " remove point" begin
335- f = Fun (identity, (- 1 .. 1 ) \ 0 )
335+ f = Fun (identity, setdiffdomain (- 1 .. 1 , 0 ) )
336336 @test f (0.1 ) ≈ 0.1
337337 @test f (- 0.1 ) ≈ - 0.1
338338 end
0 commit comments