Skip to content

Commit

Permalink
add test for new BSplineSpace constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
hyrodium committed Oct 16, 2023
1 parent d070d88 commit d146d71
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/test_BSplineSpace.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
P4 = BSplineSpace{2,Real}(P1)
P5 = BSplineSpace{2,Float64}(P1)
P6 = BSplineSpace{2,Float64}(KnotVector(1:8))
P7 = BSplineSpace{2,Float64,KnotVector{Float64}}(KnotVector(1:8))
@test P1 == P2 == P3 == P4 == P5 == bsplinespace(P1) == bsplinespace(P2) == bsplinespace(P3) == bsplinespace(P4) == bsplinespace(P5)
@test P5 == P6
@test typeof(P5) === typeof(P6)
@test P5 == P6 == P7
@test typeof(P5) === typeof(P6) === typeof(P7)
@test P1 isa BSplineSpace{2,Int}
@test P2 isa BSplineSpace{2,Int}
@test P3 isa BSplineSpace{2,Int}
Expand Down

0 comments on commit d146d71

Please sign in to comment.