Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
6
Task/Assertions/BASIC256/assertions.basic
Normal file
6
Task/Assertions/BASIC256/assertions.basic
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
subroutine assert (condition, message)
|
||||
if not condition then print "ASSERTION FAIED: ";message: throwerror 1
|
||||
end subroutine
|
||||
|
||||
call assert(1+1=2, "but I don't expect this assertion to fail"): rem Does not throw an error
|
||||
rem call assert(1+1=3, "and rightly so"): rem Throws an error
|
||||
Loading…
Add table
Add a link
Reference in a new issue