Skip to content

Commit b5b08fa

Browse files
committed
added allocs test for RNE
1 parent 45edc91 commit b5b08fa

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/inverse_dynamics_test.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@ function _test_inverse_dynamics(m, time, q, q̇, q̈, gravity; rng=MersenneTwist
5353
# Test inertance matrix computed via RNE
5454
_test_RNE_inertance_matrix(icache, dcache, time, q)
5555

56+
############################
57+
# Test 5
58+
# Check no allocs
59+
allocs = @allocated inverse_dynamics!(icache, time, q, q̇, q̈, gravity)
60+
@test allocs == 0
5661
end
5762

5863
function _test_one_coord_vs_jacobian(icache, dcache, rng, coord)

0 commit comments

Comments
 (0)