@@ -73,29 +73,31 @@ TEST(MathFunctions, value_of_rec_return_type_short_circuit_std_vector) {
7373 std::vector<double > a (5 );
7474 const std::vector<double > b (5 );
7575 EXPECT_TRUE ((std::is_same<decltype (stan::math::value_of_rec (a)),
76- std::vector<double >&>::value)) << " stan::math::value_of_rec(a)) = " <<
77- stan::math::test::type_name<decltype (stan::math::value_of_rec (a))>() <<
78- " . But expected std::vector<double>&" ;
76+ std::vector<double >&>::value))
77+ << " stan::math::value_of_rec(a)) = "
78+ << stan::math::test::type_name<decltype (stan::math::value_of_rec (a))>()
79+ << " . But expected std::vector<double>&" ;
7980 EXPECT_TRUE ((std::is_same<decltype (stan::math::value_of_rec (b)),
80- const std::vector<double >&>::value)) << " stan::math::value_of_rec(b)) = " <<
81- stan::math::test::type_name<decltype (stan::math::value_of_rec (b))>() <<
82- " . But expected const std::vector<double>&" ;
81+ const std::vector<double >&>::value))
82+ << " stan::math::value_of_rec(b)) = "
83+ << stan::math::test::type_name<decltype (stan::math::value_of_rec (b))>()
84+ << " . But expected const std::vector<double>&" ;
8385}
8486
8587TEST (MathFunctions, value_of_rec_return_type_short_circuit_vector_xd) {
8688 Eigen::Matrix<double , Eigen::Dynamic, 1 > a (5 );
8789 const Eigen::Matrix<double , Eigen::Dynamic, 1 > b (5 );
8890 EXPECT_TRUE ((std::is_same<decltype (stan::math::value_of_rec (a)),
89- Eigen::Matrix<double , Eigen::Dynamic, 1 >&>::value))
90- << " stan::math::value_of_rec(a)) = " <<
91- stan::math::test::type_name<decltype (stan::math::value_of_rec (a))>() <<
92- " . But expected Eigen::Matrix<double, Eigen::Dynamic, 1>&" ;
91+ Eigen::Matrix<double , Eigen::Dynamic, 1 >&>::value))
92+ << " stan::math::value_of_rec(a)) = "
93+ << stan::math::test::type_name<decltype (stan::math::value_of_rec (a))>()
94+ << " . But expected Eigen::Matrix<double, Eigen::Dynamic, 1>&" ;
9395 EXPECT_TRUE (
9496 (std::is_same<decltype (stan::math::value_of_rec (b)),
9597 const Eigen::Matrix<double , Eigen::Dynamic, 1 >&>::value))
96- << " stan::math::value_of_rec(b)) = " <<
97- stan::math::test::type_name<decltype (stan::math::value_of_rec (b))>() <<
98- " . But expected const Eigen::Matrix<double, Eigen::Dynamic, 1>&" ;
98+ << " stan::math::value_of_rec(b)) = "
99+ << stan::math::test::type_name<decltype (stan::math::value_of_rec (b))>()
100+ << " . But expected const Eigen::Matrix<double, Eigen::Dynamic, 1>&" ;
99101}
100102
101103TEST (MathFunctions, value_of_rec_return_type_short_circuit_row_vector_xd) {
0 commit comments