Skip to content

Commit 5efd9d4

Browse files
committed
Add jacobian tests
1 parent 77b386b commit 5efd9d4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "RobotZoo"
22
uuid = "74be38bb-dcc2-4b9e-baf3-d6373cd95f10"
33
authors = ["Brian Jackson <bjack205@gmail.com>"]
4-
version = "0.3.1"
4+
version = "0.3.2"
55

66
[deps]
77
FiniteDiff = "6a86dc24-6348-571c-b903-95158fe2bd41"

test/models_test.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function test_model(model; evals=1, samples=1, tol=1e-6, customjacobian=false)
2626
RobotDynamics.jacobian!(InPlace(), FiniteDifference(), model, ∇c1, xdot, z)
2727
@test ∇c1 ∇c2 atol=tol
2828
if customjacobian
29-
RobotDynamics.jacobian!(InPlace(), UserDefined(), model, ∇c1, xdot, z)
29+
RobotDynamics.jacobian!(InPlace(), RD.UserDefined(), model, ∇c1, xdot, z)
3030
@test ∇c1 ∇c2
3131
end
3232
end
@@ -39,7 +39,7 @@ test_model(acrobot)
3939
# Car
4040
car = RobotZoo.DubinsCar()
4141
@test RD.dims(car) == (3,2,3)
42-
test_model(car)
42+
test_model(car, customjacobian=true)
4343

4444
# Bicycle Car
4545
bicycle = RobotZoo.BicycleModel()

0 commit comments

Comments
 (0)