Skip to content

Commit

Permalink
Actually use tols from the previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
martinmodrak committed Jan 30, 2020
1 parent fbb4453 commit 1a915e4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/unit/math/mix/fun/quad_form_diag_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ TEST(MathMixMatFun, quadFormDiag) {
tols.hessian_fvar_hessian_ = relative_tolerance(5e-4, 1e-3);

// matched sizes
stan::test::expect_ad(f, m00, v0);
stan::test::expect_ad(f, m11, v1);
stan::test::expect_ad(f, m22, v2);
stan::test::expect_ad(f, m33, v3);
stan::test::expect_ad(tols, f, m00, v0);
stan::test::expect_ad(tols, f, m11, v1);
stan::test::expect_ad(tols, f, m22, v2);
stan::test::expect_ad(tols, f, m33, v3);

// exceptions from mismached sizes
stan::test::expect_ad(f, m33, v2);
stan::test::expect_ad(f, m22, v3);
stan::test::expect_ad(tols, f, m33, v2);
stan::test::expect_ad(tols, f, m22, v3);
}

0 comments on commit 1a915e4

Please sign in to comment.