Skip to content

Commit

Permalink
check a few defaults in ProductManifold.
Browse files Browse the repository at this point in the history
  • Loading branch information
kellertuer committed May 6, 2022
1 parent 3b35bc7 commit 9082e60
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/manifolds/product_manifold.jl
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ using RecursiveArrayTools: ArrayPartition
@test check_point(Mse, [1, 2]) isa DomainError
@test_throws DomainError is_vector(Mse, 1, [1, 2], true; check_base_point=false)
@test check_vector(Mse, 1, [1, 2]; check_base_point=false) isa DomainError
#default fallbacks for check_size, Product not working with Arrays
@test Manifolds.check_size(Mse, zeros(2)) isa DomainError
@test Manifolds.check_size(Mse, zeros(2), zeros(3)) isa DomainError
types = [Vector{Float64}]
TEST_FLOAT32 && push!(types, Vector{Float32})
TEST_STATIC_SIZED && push!(types, MVector{5,Float64})
Expand Down

0 comments on commit 9082e60

Please sign in to comment.