1 | #!/usr/bin/env python2 |
2 | """ |
3 | mops_test.py |
4 | """ |
5 | from __future__ import print_function |
6 | |
7 | import unittest |
8 | |
9 | from mycpp import mops # module under test |
10 | |
11 | |
12 | class MopsTest(unittest.TestCase): |
13 | |
14 | def testBadOps(self): |
15 | i = mops.BigInt(1) |
16 | j = mops.BigInt(2) |
17 | |
18 | #print(i + j) |
19 | #print(i <= j) |
20 | |
21 | #print(-i) |
22 | |
23 | try: |
24 | print(i < j) |
25 | except AssertionError: |
26 | pass |
27 | else: |
28 | self.fail('Expected error') |
29 | |
30 | |
31 | if __name__ == '__main__': |
32 | unittest.main() |