Skip to content

Commit

Permalink
Use @ballocated instead of @allocated.
Browse files Browse the repository at this point in the history
  • Loading branch information
tkoolen committed Feb 2, 2021
1 parent 5e83fa9 commit 10fa55e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ uuid = "366cf18f-59d5-5db9-a4de-86a9f6786172"
version = "2.3.0"

[deps]
BenchmarkTools = "6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf"
DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"
LightXML = "9c8b4983-aa76-5018-a973-4c85ecc9e179"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
Expand Down
3 changes: 1 addition & 2 deletions test/test_mechanism_algorithms.jl
Original file line number Diff line number Diff line change
Expand Up @@ -374,8 +374,7 @@ end
@test_throws ArgumentError point_jacobian!(J_point, x, p, transform(x, point, default_frame(base)))
end
point_jacobian!(J_point, x, p, point)
allocs = @allocated(point_jacobian!(J_point, x, p, point)) == 0
@test allocs == 0
@test(@ballocated(point_jacobian!($J_point, $x, $p, $point)) == 0)
J = geometric_jacobian(x, p)
T = Twist(J, velocity(x))
point_in_world = transform(x, point, root_frame(mechanism))
Expand Down

0 comments on commit 10fa55e

Please sign in to comment.