gambas-source-code/main/lib/test/gb.test/.src/TestMyself/TError.test
Christof Thalhofer fc4525708a gb.test rename test modules
[GB.TEST]
* OPT: rename testmodules and methods in them, get rid of such a lot "Test"
2020-05-26 20:45:18 +02:00

13 lines
223 B
Text

' Gambas test file
Public Sub Error()
Dim a As Long
Try a = 3 / 0
Assert.Error("Wanted error. Ok if ok.")
Try a = 3 / 0 ' Throws Error.Code 26
Assert.ErrorCode(26, "Wanted error 26. Ok if ok.")
End