Skip to content

Commit 5af9ced

Browse files
author
Jouni Helske
committed
TEST to TEST_F
1 parent 873012f commit 5af9ced

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

test/unit/math/fwd/fun/log_softmax_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ TEST(AgradFwd, log_softmax_many_small_probabilities) {
7979
EXPECT_NEAR(1.0 - tangent, y(0).d(), 1e-12);
8080
EXPECT_NEAR(2.0 - tangent, y(1).d(), 1e-12);
8181
}
82-
TEST(Agrad, log_softmax_positive_infinity_consistent_with_prim) {
82+
TEST(AgradFwd, log_softmax_positive_infinity_consistent_with_prim) {
8383
using stan::math::fvar;
8484
using stan::math::log_softmax;
8585

test/unit/math/fwd/fun/log_sum_exp_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
#include <cmath>
55

6-
TEST(AgradFwdLogSumExp, derivative_does_not_overflow) {
6+
TEST(AgradFwd, log_sum_exp_derivative_does_not_overflow) {
77
using stan::math::fvar;
88
using stan::math::log_sum_exp;
99

test/unit/math/rev/fun/log_softmax_test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ TEST_F(AgradRev, log_softmax_var_value_row_vector) {
6161
EXPECT_FLOAT_EQ(1.0 - 3.0 * std::exp(2.0) / denom, x.adj()(2));
6262
}
6363

64-
TEST(AgradRev, log_softmax_negative_infinity_has_finite_adjoint) {
64+
TEST_F(AgradRev, log_softmax_negative_infinity_has_finite_adjoint) {
6565
using stan::math::log_softmax;
6666
using stan::math::sum;
6767
using stan::math::var_value;
@@ -92,7 +92,7 @@ TEST(AgradRev, log_softmax_negative_infinity_has_finite_adjoint) {
9292
EXPECT_NEAR(1.0 - 4.0 * p3, x.adj()(3), 1e-12);
9393
}
9494

95-
TEST(AgradRev, log_softmax_adjoint_uses_stable_softmax) {
95+
TEST_F(AgradRev, log_softmax_adjoint_uses_stable_softmax) {
9696
using stan::math::log_softmax;
9797
using stan::math::sum;
9898
using stan::math::var_value;

test/unit/math/rev/fun/log_sum_exp_test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ TEST_F(AgradRev, log_sum_exp_tests_large_values) {
6262
EXPECT_FLOAT_EQ(a8.adj(), 0.0);
6363
}
6464

65-
TEST(AgradRev, log_sum_exp_negative_infinity_has_zero_adjoint) {
65+
TEST_F(AgradRev, log_sum_exp_negative_infinity_has_zero_adjoint) {
6666
using stan::math::log_sum_exp;
6767
using stan::math::var_value;
6868

@@ -87,7 +87,7 @@ TEST(AgradRev, log_sum_exp_negative_infinity_has_zero_adjoint) {
8787
EXPECT_NEAR(e3 / denom, x.adj()(3), 1e-12);
8888
}
8989

90-
TEST(AgradRev, log_sum_exp_adjoint_uses_stable_softmax) {
90+
TEST_F(AgradRev, log_sum_exp_adjoint_uses_stable_softmax) {
9191
using stan::math::log_sum_exp;
9292
using stan::math::var_value;
9393

0 commit comments

Comments
 (0)