Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
= committed Dec 6, 2023
1 parent df917c8 commit fd5ebcc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/strings/ArrayToStringTest.st
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,17 @@ NAMESPACE Simatic.Ax.Conversion
METHOD PUBLIC Test_Array_ToString_without_indices_and_expect_full_string
VAR_TEMP
_str : STRING;
array_0_9_test : string := '0123456789';
array_1_10_test : string := '1234567890';
END_VAR

_str := Arrays.ToString(arr := array_0_9);
Equal(expected := 10, actual := LengthOf(_str));
Equal(expected := TRUE, actual := _str = exp_0_9);
Equal(expected := TRUE, actual := _str = array_0_9_test);

_str := Arrays.ToString(arr := array_1_10);
Equal(expected := 10, actual := LengthOf(_str));
Equal(expected := TRUE, actual := _str = exp_1_10);
Equal(expected := TRUE, actual := _str = array_1_10_test);
;
END_METHOD

Expand Down

0 comments on commit fd5ebcc

Please sign in to comment.