forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathassert.lcb
More file actions
33 lines (25 loc) · 724 Bytes
/
assert.lcb
File metadata and controls
33 lines (25 loc) · 724 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
32
33
module com.livecode.array.tests
use com.livecode.__INTERNAL._testlib
handler testExpect_Pass()
expect true is true
return true
end handler
handler testExpect_Fail()
expect false is true
return true
end handler
handler testExpectReason_Pass()
expect that true is true because "reasons"
return true
end handler
handler testExpectReason_Fail()
expect that false is true because "reasons"
return true
end handler
public handler testExpect()
test "expect success" when testExpect_Pass()
MCUnitTestHandlerThrows(testExpect_Fail, "expect failure")
test "expect success with reason" when testExpectReason_Pass()
MCUnitTestHandlerThrows(testExpectReason_Fail, "expect failure with reason")
end handler
end module