| 43 | } |
| 44 | |
| 45 | static void test_sub() { |
| 46 | assert(hc_fix_sub(hc_fix(2, 175), hc_fix(2, 25)) == |
| 47 | hc_fix(2, 150)); |
| 48 | |
| 49 | assert(hc_fix_sub(hc_fix(2, 175), hc_fix(2, -25)) == |
| 50 | hc_fix(2, 200)); |
| 51 | } |
| 52 | |
| 53 | void fix_tests() { |
| 54 | test_add(); |
no test coverage detected