rooibos-roku 5.0.1 → 5.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -900,7 +900,7 @@ namespace rooibos
900
900
  end if
901
901
  else if Rooibos.Common.isString(item)
902
902
  if Rooibos.Common.asString(item) <> ""
903
- msg = "Input value is not empty."
903
+ msg = "String is not empty, contains: " + Rooibos.Common.asString(item, true)
904
904
  m.currentResult.fail(msg, m.currentAssertLineNumber)
905
905
  return false
906
906
  end if
@@ -305,13 +305,13 @@ namespace rooibos.Common
305
305
  ' */
306
306
  function asString(input, includeType = false) as string
307
307
  if Rooibos.Common.isValid(input) = false
308
+ return "INVALID"
309
+ else if Rooibos.Common.isString(input)
308
310
  if includeType
309
311
  return """" + input + """"
310
312
  else
311
313
  return input
312
314
  end if
313
- else if Rooibos.Common.isString(input)
314
- return """" + input + """"
315
315
  else if Rooibos.Common.isInteger(input) or Rooibos.Common.isLongInteger(input) or Rooibos.Common.isBoolean(input)
316
316
  if includeType
317
317
  return input.ToStr() + " (" + Rooibos.Common.getSafeType(input) + ")"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rooibos-roku",
3
- "version": "5.0.1",
3
+ "version": "5.0.2",
4
4
  "description": "simple, flexible, fun brightscript test framework for roku scenegraph apps - roku brighterscript plugin",
5
5
  "repository": {
6
6
  "type": "git",