From: Wolfgang Bangerth Date: Thu, 28 May 2015 16:35:15 +0000 (-0500) Subject: Fix test. X-Git-Tag: v8.3.0-rc1~143^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F971%2Fhead;p=dealii.git Fix test. The test uses acosh(0.5), but acosh is only defined for arguments >=1. --- diff --git a/tests/base/function_parser_06.cc b/tests/base/function_parser_06.cc index 3af2240f51..52352bd951 100644 --- a/tests/base/function_parser_06.cc +++ b/tests/base/function_parser_06.cc @@ -1,6 +1,6 @@ // --------------------------------------------------------------------- // -// Copyright (C) 2005 - 2014 by the deal.II authors +// Copyright (C) 2005 - 2015 by the deal.II authors // // This file is part of the deal.II library. // @@ -76,7 +76,7 @@ void test() eval("abs(-2.3)",Point<2>(0,0), 2.3); eval("acos(0.5)",Point<2>(0,0), acos(0.5)); - eval("acosh(0.5)",Point<2>(0,0), acosh(0.5)); + eval("acosh(1.5)",Point<2>(0,0), acosh(1.5)); eval("asin(0.5)",Point<2>(0,0), asin(0.5)); eval("asinh(0.5)",Point<2>(0,0), asinh(0.5)); eval("atan(0.5)",Point<2>(0,0), atan(0.5)); diff --git a/tests/base/function_parser_06.with_muparser=true.output b/tests/base/function_parser_06.with_muparser=true.output index c6d2e0089b..2ec9e6652b 100644 --- a/tests/base/function_parser_06.with_muparser=true.output +++ b/tests/base/function_parser_06.with_muparser=true.output @@ -15,7 +15,7 @@ DEAL::'int(2.1)' @ 1.10000 -2.00000 is 2.00000 ( expected 2.00000 ) DEAL::'int(-3.8)' @ 1.10000 -2.00000 is -4.00000 ( expected -4.00000 ) DEAL::'abs(-2.3)' @ 0.00000 0.00000 is 2.30000 ( expected 2.30000 ) DEAL::'acos(0.5)' @ 0.00000 0.00000 is 1.04720 ( expected 1.04720 ) -DEAL::'acosh(0.5)' @ 0.00000 0.00000 is -nan ( expected -nan ) +DEAL::'acosh(1.5)' @ 0.00000 0.00000 is 0.962424 ( expected 0.962424 ) DEAL::'asin(0.5)' @ 0.00000 0.00000 is 0.523599 ( expected 0.523599 ) DEAL::'asinh(0.5)' @ 0.00000 0.00000 is 0.481212 ( expected 0.481212 ) DEAL::'atan(0.5)' @ 0.00000 0.00000 is 0.463648 ( expected 0.463648 ) diff --git a/tests/base/function_parser_07.cc b/tests/base/function_parser_07.cc index 494c37ce5b..41d47772b5 100644 --- a/tests/base/function_parser_07.cc +++ b/tests/base/function_parser_07.cc @@ -1,6 +1,6 @@ // --------------------------------------------------------------------- // -// Copyright (C) 2005 - 2014 by the deal.II authors +// Copyright (C) 2005 - 2015 by the deal.II authors // // This file is part of the deal.II library. //