1 def assert_op(pre
, o
, e
, op
):
2 """ Verifies the given values given the particular operand
4 p (Prefix): Appended to the front of the assert statement
5 e (Expected): The expected value
6 o (Output): The output result
7 op (Operation): (0 => ==), (1 => !=)
14 def assert_eq(p
, o
, e
):
15 """ Verifies the given values are equal
17 p (Prefix): Appended to the front of the assert statement
18 e (Expected): The expected value
19 o (Output): The output result
21 assert o
== e
, p
+ " Output " + str(o
) + " Expected " + str(e
)
23 def assert_ne(p
, o
, e
):
24 """ Verifies the given values are not equal
26 p (Prefix): Appended to the front of the assert statement
27 e (Expected): The expected value
28 o (Output): The output result
30 assert o
!= e
, p
+ " Output " + str(o
) + " Not Expecting " + str(e
)