From 18125e42bac95e0557364d7ee1d30cb4a60d719e Mon Sep 17 00:00:00 2001 From: aaronlong Date: Wed, 19 Feb 2020 15:46:14 +0000 Subject: [PATCH] Added test for LREAL assert using tcUNIT helper methods --- .../standard_library_tests/FB_Axis_TEST.TcPOU | 29 ++++++++++++------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/solution/tc_project_app/Test/standard_library_tests/FB_Axis_TEST.TcPOU b/solution/tc_project_app/Test/standard_library_tests/FB_Axis_TEST.TcPOU index e80efba..36cf024 100644 --- a/solution/tc_project_app/Test/standard_library_tests/FB_Axis_TEST.TcPOU +++ b/solution/tc_project_app/Test/standard_library_tests/FB_Axis_TEST.TcPOU @@ -140,24 +140,26 @@ VAR InitialValue: LREAL; Result: LREAL; ExpectedResult: LREAL; + + fDelta: REAL := 0.01; END_VAR]]> +AssertEquals_LREAL(Expected := ExpectedResult, + Actual := Result, + Delta := fDelta, + Message := 'fVelocity of the axis is different.'); + TEST_FINISHED(); +]]> @@ -220,10 +222,17 @@ END_IF]]> + - - + + + + + + + +