#include <cstdio> #include "abs_math.h" using namespace std; void abs_compare_test() { /* 0 を返すケース */ printf("line:%d result = %d\n", __LINE__, abs_compare( 2, 2)); printf("line:%d result = %d\n", __LINE__, abs_compare( 2,-2)); printf("line:%d result = %d\n", __LINE__, abs_compare(-2, 2)); printf("line:%d result = %d\n", __LINE__, abs_compare(-2,-2)); /* 1 を返すケース */ printf("line:%d result = %d\n",