1
3
6
8
9
10 main.case("Using assert to verify the result")
11 main.step("Using assert_equal to verify the result is equivalent or not")
12 expect = main.TRUE
13 actual = main.TRUE
14 utilities.assert_equals(expect=expect,actual=actual,onpass="expect is equal to actual",onfail="expect is not equal to actual")
15
16 main.step("Using assert_matches to verify the result matches or not")
17 expect = "Res(.*)"
18 actual = "Result"
19 utilities.assert_matches(expect=expect,actual=actual,onpass="expect is macthes to actual",onfail="expect is not matches to actual")
20
21 main.step("Using assert_greater to verify the result greater or not")
22 expect = 10
23 actual = 5
24 utilities.assert_greater(expect=actual,actual=expect,onpass="expect is greater than the actual",onfail="expect is not greater than the actual")
25
26 main.step("Using assert_lesser to verify the result lesser or not")
27 expect = 5
28 actual = 10
29 utilities.assert_lesser(expect=actual,actual=expect,onpass="expect is lesser than the actual",onfail="expect is not lesser than the actual")
30