Skip to content

Commit dfe4383

Browse files
authored
Update onehotvector tests (#326)
1 parent 90d8cbe commit dfe4383

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/MiscAFBTest.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,8 @@ Base.:(==)(a::UniqueInterval, b::UniqueInterval) = (@assert a.parentinterval ==
202202

203203
@testset "OneHotVector" begin
204204
for n in [1, 3, 10_000]
205-
f = Fun(Chebyshev(), [zeros(n-1); 1])
206-
g = ApproxFunBase.basisfunction(Chebyshev(), n)
205+
f = Fun(Chebyshev(), [zeros(n); 1])
206+
g = Chebyshev()(n)
207207
@test f == g
208208
@test f(0.5) == g(0.5)
209209
end

0 commit comments

Comments
 (0)