Skip to content

Commit

Permalink
adds two further small tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
kellertuer committed Sep 14, 2021
1 parent ea76128 commit d84a3cc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/manifolds/hyperbolic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -267,5 +267,9 @@ include("../utils.jl")
X = [1.0, 2.0, sqrt(3)]
Y = change_representer(M, EuclideanMetric(), p, X)
@test inner(M, p, X, Y) == inner(Euclidean(3), p, X, X)
# change metric not possible from Euclidean, since the embedding is Lorenzian
@test_throws MethodError change_metric(M, EuclideanMetric(), p, X)
# but if we come from the same metric, we have the identity
@test change_metric(M, MinkowskiMetric(), p, X) == X
end
end

0 comments on commit d84a3cc

Please sign in to comment.