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 Nov 29, 2022
1 parent 909e73a commit 506464b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
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 506464b

Please sign in to comment.