Skip to content

Commit

Permalink
add some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszbaran committed Oct 7, 2023
1 parent 0eddfce commit 60ad5f7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/solvers/test_Levenberg_Marquardt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ end
X_r2 = similar(x0)
get_gradient!(p_r2, X_r2, x0)
@test isapprox(X_r2, [270.3617451389837, 677.6730784956912])
@test isapprox(get_gradient(p_r2, x0), [270.3617451389837, 677.6730784956912])

p_r2_mut = DefaultManoptProblem(
M,
Expand All @@ -228,6 +229,7 @@ end
X_r2 = similar(x0)
get_gradient!(p_r2_mut, X_r2, x0)
@test isapprox(X_r2, [270.3617451389837, 677.6730784956912])
@test isapprox(get_gradient(p_r2_mut, x0), [270.3617451389837, 677.6730784956912])

@testset "errors" begin
@test_throws ArgumentError LevenbergMarquardtState(
Expand Down

0 comments on commit 60ad5f7

Please sign in to comment.