Skip to content

Commit

Permalink
fix: fixes equals failures (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
georgejecook authored Jan 12, 2022
1 parent 2864c66 commit ef66034
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions framework/src/source/CommonUtils.bs
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,33 @@ namespace rooibos.Common
end function


function getSafeType(v)
t = type(v)
if t = "<uninitialized>" 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
Expand Down

0 comments on commit ef66034

Please sign in to comment.