BEGIN {
chdir 't' if -d 't';
- @INC = '../lib';
require './test.pl';
+ set_up_inc('../lib');
}
-plan tests => 30;
+use Config;
+
+plan tests => 31;
# compile time evaluation
# atan2() tests testing with -0.0, 0.0, -1.0, 1.0 were removed due to
# differing results from calls to atan2() on various OS's and
# architectures. See perlport.pod for more information.
+
+SKIP: {
+ unless ($Config{usequadmath}) {
+ skip "need usequadmath", 1;
+ }
+ # For quadmath we have a known precision.
+ is(sqrt(2), '1.4142135623730950488016887242097', "quadmath sqrt");
+}