Skip to content

Commit

Permalink
another test
Browse files Browse the repository at this point in the history
  • Loading branch information
sjuergen committed Oct 11, 2024
1 parent a80c480 commit 597788d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 124 deletions.
5 changes: 5 additions & 0 deletions test/TwoWayActuatorTest.st
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,19 @@ NAMESPACE Simatic.Ax.axftcmlib
_qToWork := _outputStateLess;
_qToHome := _outputStateLess;
busy := FALSE;
done := FALSE;
cmd := NULL;
END_METHOD

{Test}
METHOD PUBLIC GoToWorkPosition_Swiches_Q_ToWorkPosition_On_And_Returns_Busy
cmd := _actuator.GoToWorkPosition();
busy := cmd.Busy();
IF NOT(busy) THEN
done := cmd.Done();
END_IF;
AxUnit.Assert.Equal(expected := TRUE, actual := busy);
AxUnit.Assert.Equal(expected := TRUE, actual := done);
AxUnit.Assert.Equal(expected := TRUE, actual := _qToWork.IsOn());
AxUnit.Assert.Equal(expected := FALSE, actual := _qToHome.IsOn());
Equal(expected := TRUE, actual := _actuator.GetState() = ActuatorState#MoveToWorkPosition);
Expand Down
124 changes: 0 additions & 124 deletions test/test.st

This file was deleted.

0 comments on commit 597788d

Please sign in to comment.