예제 #1
0
파일: dec64_test.c 프로젝트: kmsquire/DEC64
void test_not(dec64 first, dec64 expected, char * comment) {
    dec64 actual = dec64_not(first);
    judge_unary(first, expected, actual, "not", "!", comment);
}
예제 #2
0
파일: dec64_test.c 프로젝트: kmsquire/DEC64
void test_signum(dec64 first, dec64 expected, char * comment) {
    dec64 actual = dec64_signum(first);
    judge_unary(first, expected, actual, "signum", "s", comment);
}
예제 #3
0
파일: dec64_test.c 프로젝트: kmsquire/DEC64
void test_is_zero(dec64 first, dec64 expected, char * comment) {
    dec64 actual = dec64_is_zero(first);
    judge_unary(first, expected, actual, "is_zero", "z", comment);
}
예제 #4
0
파일: dec64_test.c 프로젝트: kmsquire/DEC64
void test_neg(dec64 first, dec64 expected, char * comment) {
    dec64 actual = dec64_neg(first);
    judge_unary(first, expected, actual, "neg", "n", comment);
}
예제 #5
0
파일: dec64_test.c 프로젝트: kmsquire/DEC64
void test_integer(dec64 first, dec64 expected, char * comment) {
    dec64 actual = dec64_integer(first);
    judge_unary(first, expected, actual, "integer", "i", comment);
}
예제 #6
0
파일: dec64_test.c 프로젝트: kmsquire/DEC64
void test_is_nan(dec64 first, dec64 expected, char * comment) {
    dec64 actual = dec64_is_nan(first);
    judge_unary(first, expected, actual, "is_nan", "i", comment);
}
예제 #7
0
static void test_tan(dec64 first, dec64 expected, char * comment) {
    dec64 actual = dec64_tan(first);
    judge_unary(first, expected, actual, "tan", "t", comment);
}
예제 #8
0
파일: dec64_test.c 프로젝트: kmsquire/DEC64
void test_abs(dec64 first, dec64 expected, char * comment) {
    dec64 actual = dec64_abs(first);
    judge_unary(first, expected, actual, "abs", "a", comment);
}
예제 #9
0
static void test_sqrt(dec64 first, dec64 expected, char * comment) {
    dec64 actual = dec64_sqrt(first);
    judge_unary(first, expected, actual, "sqrt", "s", comment);
}
예제 #10
0
static void test_log(dec64 first, dec64 expected, char * comment) {
    dec64 actual = dec64_log(first);
    judge_unary(first, expected, actual, "log", "ln", comment);
}
예제 #11
0
static void test_factorial(dec64 first, dec64 expected, char * comment) {
    dec64 actual = dec64_factorial(first);
    judge_unary(first, expected, actual, "fac", "!", comment);
}
예제 #12
0
static void test_exp(dec64 first, dec64 expected, char * comment) {
    dec64 actual = dec64_exp(first);
    judge_unary(first, expected, actual, "exp", "e", comment);
}
예제 #13
0
static void test_cos(dec64 first, dec64 expected, char * comment) {
    dec64 actual = dec64_cos(first);
    judge_unary(first, expected, actual, "cos", "c", comment);
}