From 19b6aa93c6c2a4dc3b1f141ab568ffa7d15d8582 Mon Sep 17 00:00:00 2001 From: sjuergen Date: Fri, 11 Oct 2024 12:19:11 +0200 Subject: [PATCH] fix tests --- test/TwoWayActuatorTest.st | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/TwoWayActuatorTest.st b/test/TwoWayActuatorTest.st index 9ea31a3..2ee3b2a 100644 --- a/test/TwoWayActuatorTest.st +++ b/test/TwoWayActuatorTest.st @@ -41,7 +41,7 @@ NAMESPACE Simatic.Ax.axftcmlib METHOD PUBLIC GoToWorkPosition_Swiches_Q_ToWorkPosition_On_And_Returns_Busy cmd := _actuator.GoToWorkPosition(); busy := cmd.Busy(); - AxUnit.Assert.Equal(expected := FALSE, actual := busy); + AxUnit.Assert.Equal(expected := TRUE, actual := busy); AxUnit.Assert.Equal(expected := TRUE, actual := _qToWork.IsOn()); AxUnit.Assert.Equal(expected := FALSE, actual := _qToHome.IsOn()); Equal(expected := TRUE, actual := _actuator.GetState() = ActuatorState#MoveToWorkPosition); @@ -112,7 +112,7 @@ NAMESPACE Simatic.Ax.axftcmlib IF NOT(busy) THEN done := cmd.Done(); END_IF; - AxUnit.Assert.Equal(expected := TRUE, actual := busy); + AxUnit.Assert.Equal(expected := FALSE, actual := busy); AxUnit.Assert.Equal(expected := TRUE, actual := done); AxUnit.Assert.Equal(expected := FALSE, actual := _qToWork.IsOn()); AxUnit.Assert.Equal(expected := FALSE, actual := _qToHome.IsOn());