From 22851b3439a70cb42ea7fb02a38b25057ed6b456 Mon Sep 17 00:00:00 2001 From: William Ledbetter Date: Mon, 31 Aug 2020 18:19:04 -0500 Subject: [PATCH] match parentheses --- test/test_autodiff_9.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/test_autodiff_9.cpp b/test/test_autodiff_9.cpp index af819a0ed6..43a7aeab60 100644 --- a/test/test_autodiff_9.cpp +++ b/test/test_autodiff_9.cpp @@ -119,12 +119,12 @@ BOOST_AUTO_TEST_CASE_TEMPLATE(eigen_general, T, all_float_types) { (p - 1) * p * pow(x[3].derivative(0), p - 2)); // Check log - BOOST_CHECK_EQUAL(y5[2].derivative(0), log(x[0].derivative(0)); - BOOST_CHECK_EQUAL(y5[3].derivative(0), log(x[3].derivative(0)); - BOOST_CHECK_EQUAL(y5[2].derivative(1), 1/x[2].derivative(0)); - BOOST_CHECK_EQUAL(y5[3].derivative(1), 1/x[3].derivative(0)); - BOOST_CHECK_EQUAL(y5[2].derivative(2), -1/pow(x[2].derivative(0), 2)); - BOOST_CHECK_EQUAL(y5[3].derivative(2), -1/pow(x[3].derivative(0), 2)); + BOOST_CHECK_EQUAL(y5[2].derivative(0), log(x[0].derivative(0))); + BOOST_CHECK_EQUAL(y5[3].derivative(0), log(x[3].derivative(0))); + BOOST_CHECK_EQUAL(y5[2].derivative(1), 1 / x[2].derivative(0)); + BOOST_CHECK_EQUAL(y5[3].derivative(1), 1 / x[3].derivative(0)); + BOOST_CHECK_EQUAL(y5[2].derivative(2), -1 / pow(x[2].derivative(0), 2)); + BOOST_CHECK_EQUAL(y5[3].derivative(2), -1 / pow(x[3].derivative(0), 2)); } BOOST_AUTO_TEST_CASE_TEMPLATE(eigen_scalar, T, all_float_types) {