Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
8
Task/Assertions/PureBasic/assertions-1.basic
Normal file
8
Task/Assertions/PureBasic/assertions-1.basic
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
Macro Assert(TEST,MSG="Assert: ")
|
||||
CompilerIf #PB_Compiler_Debugger
|
||||
If Not (TEST)
|
||||
Debug MSG+" Line="+Str(#PB_Compiler_Line)+" in "+#PB_Compiler_File
|
||||
CallDebugger
|
||||
EndIf
|
||||
CompilerEndIf
|
||||
EndMacro
|
||||
4
Task/Assertions/PureBasic/assertions-2.basic
Normal file
4
Task/Assertions/PureBasic/assertions-2.basic
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
A=42
|
||||
Assert(A=42,"Assert that A=42")
|
||||
A=42-1
|
||||
Assert(A=42)
|
||||
Loading…
Add table
Add a link
Reference in a new issue