Skip to content

Commit

Permalink
CATROID-1347 Fix testNumberOfItemsFunction testrunner test
Browse files Browse the repository at this point in the history
  • Loading branch information
mpozvek authored and JohannesMayerhofer committed Jan 31, 2023
1 parent bbb75ce commit 95d7a6c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,9 @@ private int calculateUserVariableLength(UserVariable userVariable) {
if (userVariableValue instanceof String) {
return String.valueOf(userVariableValue).length();
} else {
if (isInteger((Double) userVariableValue)) {
if (userVariableValue.toString().equals("true") || userVariableValue.toString().equals("false")) {
return 1;
} else if (isInteger((Double) userVariableValue)) {
return Integer.toString(((Double) userVariableValue).intValue()).length();
} else {
return Double.toString(((Double) userVariableValue)).length();
Expand Down

0 comments on commit 95d7a6c

Please sign in to comment.