Exemplo n.º 1
0
void test_not(dec64 first, dec64 expected, char * comment) {
    dec64 actual = dec64_not(first);
    judge_unary(first, expected, actual, "not", "!", comment);
}
Exemplo n.º 2
0
void test_signum(dec64 first, dec64 expected, char * comment) {
    dec64 actual = dec64_signum(first);
    judge_unary(first, expected, actual, "signum", "s", comment);
}
Exemplo n.º 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);
}
Exemplo n.º 4
0
void test_neg(dec64 first, dec64 expected, char * comment) {
    dec64 actual = dec64_neg(first);
    judge_unary(first, expected, actual, "neg", "n", comment);
}
Exemplo n.º 5
0
void test_integer(dec64 first, dec64 expected, char * comment) {
    dec64 actual = dec64_integer(first);
    judge_unary(first, expected, actual, "integer", "i", comment);
}
Exemplo n.º 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);
}
Exemplo n.º 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);
}
Exemplo n.º 8
0
void test_abs(dec64 first, dec64 expected, char * comment) {
    dec64 actual = dec64_abs(first);
    judge_unary(first, expected, actual, "abs", "a", comment);
}
Exemplo n.º 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);
}
Exemplo n.º 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);
}
Exemplo n.º 11
0
static void test_factorial(dec64 first, dec64 expected, char * comment) {
    dec64 actual = dec64_factorial(first);
    judge_unary(first, expected, actual, "fac", "!", comment);
}
Exemplo n.º 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);
}
Exemplo n.º 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);
}