rooibos-roku 5.0.0 → 5.0.1
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.
|
@@ -1134,10 +1134,10 @@ namespace rooibos
|
|
|
1134
1134
|
m.currentResult.fail(msg, m.currentAssertLineNumber)
|
|
1135
1135
|
return false
|
|
1136
1136
|
end if
|
|
1137
|
-
className =
|
|
1137
|
+
className = `${value.__classname}`
|
|
1138
1138
|
if className <> typeStr
|
|
1139
1139
|
if msg = ""
|
|
1140
|
-
msg =
|
|
1140
|
+
msg = `Expected class: ${typeStr} got ${className}`
|
|
1141
1141
|
end if
|
|
1142
1142
|
m.currentResult.fail(msg, m.currentAssertLineNumber)
|
|
1143
1143
|
return false
|
|
@@ -305,7 +305,11 @@ namespace rooibos.Common
|
|
|
305
305
|
' */
|
|
306
306
|
function asString(input, includeType = false) as string
|
|
307
307
|
if Rooibos.Common.isValid(input) = false
|
|
308
|
-
|
|
308
|
+
if includeType
|
|
309
|
+
return """" + input + """"
|
|
310
|
+
else
|
|
311
|
+
return input
|
|
312
|
+
end if
|
|
309
313
|
else if Rooibos.Common.isString(input)
|
|
310
314
|
return """" + input + """"
|
|
311
315
|
else if Rooibos.Common.isInteger(input) or Rooibos.Common.isLongInteger(input) or Rooibos.Common.isBoolean(input)
|