Remove asynctask code (#666)
* Remove asynctask code * add job test example * Fix testing * Fix a couple of imports
This commit is contained in:
1 parent
9ef741292e
commit
82dea9af37
36 files changed
+325
-443
No files matched your search
@@ -35,4 +35,17 @@ namespace Assert
|
||||
throw "Assertion failed: Node does not have field '" + field + "'. " + ToString(message)
|
||||
end if
|
||||
end function
|
||||
|
||||
function NotNullOrEmpty(value as dynamic, message = invalid as dynamic) as void
|
||||
if value = invalid
|
||||
throw "Assertion failed: Value is invalid. " + ToString(message)
|
||||
end if
|
||||
if IsString(value) and (Len(value) = 0)
|
||||
throw "Assertion failed: Value is an empty string. " + ToString(message)
|
||||
else if IsArray(value) and (value.Count() = 0)
|
||||
throw "Assertion failed: Value is an empty array. " + ToString(message)
|
||||
else if IsAssociativeArray(value) and (value.ifAssociativeArray.count() = 0)
|
||||
throw "Assertion failed: Value is an empty associative array. " + ToString(message)
|
||||
end if
|
||||
end function
|
||||
end namespace
|
||||
@@ -1,3 +1,4 @@
|
||||
import "pkg:/source/utils/StringUtils.bs"
|
||||
import "pkg:/source/utils/Types.bs"
|
||||
|
||||
namespace UrlUtils
|
||||
|
||||
Reference in new issue
Block a user