Skip to content

Commit abb7a3c

Browse files
committed
More tests
1 parent 74d1ea8 commit abb7a3c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/test_winchcontroller.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ p3=plotx(TIME, FORCE*0.001, STATE;
9191
fig="test_winchcontroller_c")
9292
if @isdefined __TEST__
9393
dt = wcs.dt
94+
@test V_WIND[Int64(2/0.02)+1] 9.0 rtol=1e-4
95+
@test V_WIND[Int64(4/0.02)+1] 0.0 atol=1e-4
96+
@test V_WIND[Int64(6/0.02)+1] 9.0 rtol=1e-4
9497
@test mean(FORCE) 1791.0028035171347 rtol=1e-4
9598
@test maximum(FORCE) < 4270
9699
@test minimum(FORCE[10:end]) > 10.0
@@ -102,6 +105,10 @@ if @isdefined __TEST__
102105
@test mean(F_ERR) 27.65 rtol=0.1
103106
@test maximum(F_ERR) < 470
104107
@test minimum(F_ERR) > -400
108+
@test mean(V_ERR) 0.0125 rtol=0.1
109+
@test maximum(V_ERR) < 0.12
110+
@test minimum(V_ERR) > -0.13
111+
105112

106113
else
107114
display(p1); display(p2); display(p3)

0 commit comments

Comments
 (0)