5004f20609
[INTERPRETER] * NEW: Remove the now useless testing specific code. * NEW: 'gbx3 -T' now just loads the 'gb.test' component and calls Test.Main() passing it the '-T' option argument. [GB.TEST] * NEW: Move 'gb.test' sources in '/main/lib'. * NEW: 'gb.test' has now a part written in C that allows him to load project classes on demand.
22 lines
No EOL
317 B
Text
22 lines
No EOL
317 B
Text
' Gambas test file
|
|
|
|
' Gambas test module file
|
|
|
|
''' Every test in this class crashes.
|
|
''' But the test system has to report it
|
|
''' and shall not crash itself
|
|
|
|
Public Sub TestErrorTwo()
|
|
|
|
Error.Raise("I shot the sheriff.")
|
|
|
|
End
|
|
|
|
Public Sub TestDoACrash()
|
|
|
|
Dim a As Long
|
|
|
|
'This is a crash
|
|
a = 3 / 0
|
|
|
|
End |