Skip to content

Commit b2ff2f6

Browse files
squash! Add free body test case
1 parent 5e1a199 commit b2ff2f6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/Mechanical/planar_mechanics.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ tspan = (0.0, 3.0)
2222

2323
free_falling_displacement = -0.5 * 9.807 * tspan[2]^2 # 0.5 * g * t^2
2424
@test sol[body.ry][end] free_falling_displacement
25+
@test sol[body.rx][end] == 0 # no horizontal displacement
2526
# plot(sol, idxs = [body.rx, body.ry])
2627
end
2728

0 commit comments

Comments
 (0)