From 098fa9cbe522aa88594bcac15f1c5746e39bda55 Mon Sep 17 00:00:00 2001 From: Jiahao Chen Date: Thu, 17 Jul 2014 14:28:29 -0700 Subject: [PATCH] Changes GSL test to use positive x for sf_hyperg_U Fix #15 --- src/GSL.jl | 2 +- test/basic.jl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/GSL.jl b/src/GSL.jl index fd0b9d9..474f946 100644 --- a/src/GSL.jl +++ b/src/GSL.jl @@ -26,7 +26,7 @@ try #Turn off GSL's default error handler so that Julia doesn't segfault on error set_error_handler_off() set_error_handler(custom_gsl_error_handler) - sf_hyperg_U(-1.0, -1.0, randn()) + sf_hyperg_U(-1.0, -1.0, rand()) catch error("The GNU Scientific Library does not appear to be installed.") end diff --git a/test/basic.jl b/test/basic.jl index 6bb134f..76604e8 100644 --- a/test/basic.jl +++ b/test/basic.jl @@ -436,7 +436,7 @@ end @eval @sf_test sf_hyperg_1F1_int $s $t $x @eval @sf_test sf_hyperg_1F1 $x $y $z @eval @sf_test sf_hyperg_U_int $s $(min(t,2)) $xabs #TODO test e10 -@eval @sf_test sf_hyperg_U $x $y $(abs(z)) #TODO test e10 +@eval @sf_test sf_hyperg_U $xabs $y $(abs(z)) #TODO test e10 for sf in ( :sf_hyperg_2F1, :sf_hyperg_2F1_conj, :sf_hyperg_2F1_renorm, :sf_hyperg_2F1_conj_renorm