Skip to content

Commit

Permalink
Merge branch 'master' of github.com:georgejecook/rooibos
Browse files Browse the repository at this point in the history
  • Loading branch information
georgejecook committed May 24, 2022
2 parents 0ef4322 + fd728ce commit ebb1197
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion framework/src/source/BaseTestSuite.bs
Original file line number Diff line number Diff line change
Expand Up @@ -900,7 +900,7 @@ namespace rooibos
end if
else if Rooibos.Common.isString(item)
if Rooibos.Common.asString(item) <> ""
msg = "Input value is not empty."
msg = "String is not empty, contains: " + Rooibos.Common.asString(item, true)
m.currentResult.fail(msg, m.currentAssertLineNumber)
return false
end if
Expand Down
4 changes: 2 additions & 2 deletions framework/src/source/CommonUtils.bs
Original file line number Diff line number Diff line change
Expand Up @@ -305,13 +305,13 @@ namespace rooibos.Common
' */
function asString(input, includeType = false) as string
if Rooibos.Common.isValid(input) = false
return "INVALID"
else if Rooibos.Common.isString(input)
if includeType
return """" + input + """"
else
return input
end if
else if Rooibos.Common.isString(input)
return """" + input + """"
else if Rooibos.Common.isInteger(input) or Rooibos.Common.isLongInteger(input) or Rooibos.Common.isBoolean(input)
if includeType
return input.ToStr() + " (" + Rooibos.Common.getSafeType(input) + ")"
Expand Down

0 comments on commit ebb1197

Please sign in to comment.