langs a-z
This commit is contained in:
parent
db842d013d
commit
d066446780
11389 changed files with 98361 additions and 1020 deletions
5
Task/Assertions/VBScript/assertions-1.vbscript
Normal file
5
Task/Assertions/VBScript/assertions-1.vbscript
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
sub Assert( boolExpr, strOnFail )
|
||||
if not boolExpr then
|
||||
Err.Raise vbObjectError + 99999, , strOnFail
|
||||
end if
|
||||
end sub
|
||||
3
Task/Assertions/VBScript/assertions-2.vbscript
Normal file
3
Task/Assertions/VBScript/assertions-2.vbscript
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
dim i
|
||||
i = 43
|
||||
Assert i=42, "There's got to be more to life than this!"
|
||||
2
Task/Assertions/VBScript/assertions-3.vbscript
Normal file
2
Task/Assertions/VBScript/assertions-3.vbscript
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
>cscript "C:\foo\assert.vbs"
|
||||
C:\foo\assert.vbs(3, 3) (null): There's got to be more to life than this!
|
||||
Loading…
Add table
Add a link
Reference in a new issue