1 #include <stan/math/mix.hpp>
2 #include <test/unit/math/test_ad.hpp>
3 
TEST(mathMixScalFun,normal_lpdf)4 TEST(mathMixScalFun, normal_lpdf) {
5   auto f = [](const double mu, const double sigma) {
6     return [=](const auto& y) { return stan::math::normal_lpdf(y, mu, sigma); };
7   };
8 
9   stan::test::expect_ad(f(0, 1), -2.3);
10   stan::test::expect_ad(f(0, 1), 0.0);
11   stan::test::expect_ad(f(0, 1), 1.7);
12 }
13