From ef6603433664759487ee2d43bd47b4aa35a23098 Mon Sep 17 00:00:00 2001 From: George Cook Date: Wed, 12 Jan 2022 13:45:41 +0100 Subject: [PATCH] fix: fixes equals failures (#144) --- framework/src/source/CommonUtils.bs | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/framework/src/source/CommonUtils.bs b/framework/src/source/CommonUtils.bs index 8338072b..e1c760bf 100755 --- a/framework/src/source/CommonUtils.bs +++ b/framework/src/source/CommonUtils.bs @@ -576,6 +576,33 @@ namespace rooibos.Common end function + function getSafeType(v) + t = type(v) + if t = "" or t = "" + return invalid + else if t = "roString" + return "String" + else if t = "roInteger" + return "Integer" + else if t = "roBoolean" + return "Boolean" + else if t = "roBool" + return "Boolean" + else if t = "roInt" + return "Integer" + else if t = "roList" + return "List" + else if t = "roFloat" + return "Float" + else if t = "roDouble" + return "Double" + else if t = "roInvalid" + return "Invalid" + else + return t + end if + end function + ' /** ' * @memberof module:CommonUtils ' * @name EqValues