Skip to content

Commit

Permalink
address reviewer comments on test; make test-purpose for the size cle…
Browse files Browse the repository at this point in the history
…arer
  • Loading branch information
weberse2 committed May 9, 2019
1 parent 20883c6 commit f71715f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/unit/math/rev/arr/functor/coupled_ode_system_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ TEST_F(StanAgradRevOde, coupled_ode_system_dv) {
coupled_ode_system<harm_osc_ode_fun, double, stan::math::var> system(
harm_osc, y0, theta, x, x_int, &msgs);

EXPECT_EQ(stan::math::nested_size(), stack_size);
EXPECT_EQ(stack_size, stan::math::nested_size()) << "expecting no new things on the stack";

system(z0, dz_dt, t0);

Expand Down Expand Up @@ -234,7 +234,7 @@ TEST_F(StanAgradRevOde, coupled_ode_system_vd) {
coupled_ode_system<harm_osc_ode_fun, stan::math::var, double> system(
harm_osc, y0_var, theta, x, x_int, &msgs);

EXPECT_EQ(stan::math::nested_size(), stack_size);
EXPECT_EQ(stack_size, stan::math::nested_size()) << "expecting no new things on the stack";

system(z0, dz_dt, t0);

Expand Down Expand Up @@ -409,7 +409,7 @@ TEST_F(StanAgradRevOde, coupled_ode_system_vv) {
coupled_ode_system<harm_osc_ode_fun, stan::math::var, stan::math::var> system(
harm_osc, y0_var, theta_var, x, x_int, &msgs);

EXPECT_EQ(stan::math::nested_size(), stack_size);
EXPECT_EQ(stack_size, stan::math::nested_size()) << "expecting no new things on the stack";

std::vector<double> z0(z_size, 0);
z0[0] = 1.0;
Expand Down

0 comments on commit f71715f

Please sign in to comment.