Guard printf with #ifdef TEST in calculate.c