Skip to content

Commit 400e863

Browse files
committed
test not-implemented conversion
1 parent 58af572 commit 400e863

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/classical/jacobi.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,8 +316,7 @@ function _jacobi_convert_b(a, b, k, T) # Jacobi(a, b+k) \ Jacobi(a, b)
316316
end
317317
end
318318

319-
isapproxinteger(::Integer) = true
320-
isapproxinteger(x) = isinteger(x) || isapprox(x,round(Int,x)) || isapprox(x+1,round(Int,x+1))
319+
isapproxinteger(x) = isinteger(x) || isapprox(x,round(Int,x)) || isapprox(x+1,round(Int,x+1))
321320

322321

323322
function \(A::Jacobi, B::Jacobi)

test/test_jacobi.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,4 +533,8 @@ import ClassicalOrthogonalPolynomials: recurrencecoefficients, basis, MulQuasiMa
533533
@test (P² \ diff(P¹,1))[1:10,1:10] (P² \ diff(P¹))[1:10,1:10]
534534
@test (P³ \ diff(P¹,2))[1:10,1:10] (P³ \ diff(diff(P¹)))[1:10,1:10]
535535
end
536+
537+
@testset "conversion not implemented" begin
538+
@test_throws ArgumentError Jacobi(0,0) \ Jacobi(1.1,2.1)
539+
end
536540
end

0 commit comments

Comments
 (0)