示例#1
0
void test_not(dec64 first, dec64 expected, char * comment) {
    dec64 actual = dec64_not(first);
    judge_unary(first, expected, actual, "not", "!", comment);
}
示例#2
0
void test_signum(dec64 first, dec64 expected, char * comment) {
    dec64 actual = dec64_signum(first);
    judge_unary(first, expected, actual, "signum", "s", comment);
}
示例#3
0
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
void test_neg(dec64 first, dec64 expected, char * comment) {
    dec64 actual = dec64_neg(first);
    judge_unary(first, expected, actual, "neg", "n", comment);
}
示例#5
0
void test_integer(dec64 first, dec64 expected, char * comment) {
    dec64 actual = dec64_integer(first);
    judge_unary(first, expected, actual, "integer", "i", comment);
}
示例#6
0
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
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);
}