Skip to content

Commit

Permalink
finishes testing for hyperbolic.
Browse files Browse the repository at this point in the history
  • Loading branch information
kellertuer committed Sep 15, 2021
1 parent 6f1fb64 commit 95b8bc6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/manifolds/hyperbolic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@ include("../utils.jl")
copyto!(M, pC, p)
@test pC.value == p.value
XC = allocate(X)
copyto!(M, XC, p, X)
@test XC.value == X.value
@test copyto!(M, XC, p, X) == X # does copyto return the right value?
@test XC == X # does copyto store the right value?
@test XC.value == X.value # another check
end
end
@testset "Hyperbolic Representation Conversion I" begin
Expand Down Expand Up @@ -282,5 +283,7 @@ include("../utils.jl")
@test Y.value == X.value ./ α^2
Z = change_metric(M, EuclideanMetric(), p, X)
@test Z.value == X.value ./ α
A = change_metric(M, MinkowskiMetric(), p, X)
@test A == X
end
end

0 comments on commit 95b8bc6

Please sign in to comment.