diff options
Diffstat (limited to 'tests/ltr_f.c')
-rw-r--r-- | tests/ltr_f.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/tests/ltr_f.c b/tests/ltr_f.c index f925c4f..20fadac 100644 --- a/tests/ltr_f.c +++ b/tests/ltr_f.c @@ -16,17 +16,10 @@ int main() ejit_select_compile_func(f, 1, 2, EJIT_USE64(long), do_jit); - assert(ejit_run_func_2(f, EJIT_ARG(1, double), - EJIT_ARG(1, double)) == 0); - assert(ejit_run_func_2(f, EJIT_ARG(1, double), - EJIT_ARG(0, double)) == 1); + assert(erf2(f, EJIT_ARG(1, double), EJIT_ARG(1, double)) == 0); + assert(erf2(f, EJIT_ARG(1, double), EJIT_ARG(0, double)) == 0); + assert(erf2(f, EJIT_ARG(-1, double), EJIT_ARG(0, double)) == 1); + assert(erf2(f, EJIT_ARG(-1, double), EJIT_ARG(-1, double)) == 0); - assert(ejit_run_func_2(f, - EJIT_ARG(0x0fffffffffffffff, double), - EJIT_ARG(0x0ffffffffffffff0, double)) == 1); - - assert(ejit_run_func_2(f, - EJIT_ARG(0x7fffffffffffffff, double), - EJIT_ARG(0x6fffffffffffffff, double)) == 0); ejit_destroy_func(f); } |