MCPcopy Create free account
hub / github.com/codr7/hacktical-c / test_sub

Function test_sub

fix/tests.c:45–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45static 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
53void fix_tests() {
54 test_add();

Callers 1

fix_testsFunction · 0.85

Calls 2

hc_fix_subFunction · 0.85
hc_fixFunction · 0.85

Tested by

no test coverage detected