forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtestlib.lcb
More file actions
31 lines (21 loc) · 745 Bytes
/
Copy pathtestlib.lcb
File metadata and controls
31 lines (21 loc) · 745 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
module com.livecode.__INTERNAL._testlib.tests
use com.livecode.__INTERNAL._testlib
handler _Throws() returns nothing
return 1
end handler
handler _Throws2() returns nothing
return 2
end handler
public handler TestUnitTestHandlerThrows()
MCUnitTestHandlerThrows(_Throws, "unit tests expecting errors")
MCUnitTestHandlerThrows(_Throws2, "unit tests expecting errors (multiple)")
end handler
handler _DoesntThrow() returns nothing
end handler
handler _DoesntThrow2() returns nothing
end handler
public handler TestUnitTestHandlerDoesntThrow()
MCUnitTestHandlerDoesntThrow(_DoesntThrow, "unit tests expecting no errors")
MCUnitTestHandlerDoesntThrow(_DoesntThrow2, "unit tests expecting no errors (multiple)")
end handler
end module