Skip to content

Commit 3e5ea3c

Browse files
authored
Test for inf norm (#300)
* test for inf norm * Test for norm
1 parent 68b6257 commit 3e5ea3c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Static = "aedffcd0-7271-4cad-89d0-dc628f76c6d3"
2727
ApproxFunOrthogonalPolynomialsStaticExt = "Static"
2828

2929
[compat]
30-
ApproxFunBase = "0.8.53, 0.9.8"
30+
ApproxFunBase = "0.8.55, 0.9.11"
3131
ApproxFunBaseTest = "0.1"
3232
Aqua = "0.6"
3333
BandedMatrices = "0.16, 0.17"

test/ChebyshevTest.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,10 @@ include("testutils.jl")
220220
x=Fun()
221221
@test minimum(x) == -1
222222
@test maximum(x) == 1
223+
224+
a = abs(x)
225+
@test maximum(abs, x - a) == maximum(abs, a - x) == 2
226+
@test norm(x - a, Inf) == norm(a - x, Inf) == 2
223227
end
224228

225229
@testset "Do not overresolve #7" begin

0 commit comments

Comments
 (0)