Skip to content

Commit 36d4a73

Browse files
authored
Merge pull request #3174 from stan-dev/windows-flakes
Fix flaky test on windows
2 parents bc4b4bc + f3ac467 commit 36d4a73

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ TEST(AgradRevMatrix, to_var_value_matrix_test) {
9595
Eigen::MatrixXd val(2, 3);
9696
val << 1, 2, 3, 4, 5, 6;
9797
Eigen::MatrixXd adj(2, 3);
98-
val << 4, 5, 6, 7, 8, 9;
98+
adj << 4, 5, 6, 7, 8, 9;
9999
Eigen::Matrix<stan::math::var, Eigen::Dynamic, Eigen::Dynamic> mat_var = val;
100100
stan::math::var_value<Eigen::MatrixXd> var_value
101101
= stan::math::to_var_value(mat_var);
@@ -109,7 +109,7 @@ TEST(AgradRevMatrix, to_var_value_vector_test) {
109109
Eigen::VectorXd val(3);
110110
val << 1, 2, 3;
111111
Eigen::VectorXd adj(3);
112-
val << 7, 8, 9;
112+
adj << 7, 8, 9;
113113
Eigen::Matrix<stan::math::var, Eigen::Dynamic, 1> mat_var = val;
114114
stan::math::var_value<Eigen::VectorXd> var_value
115115
= stan::math::to_var_value(mat_var);
@@ -123,7 +123,7 @@ TEST(AgradRevMatrix, to_var_value_row_vector_test) {
123123
Eigen::RowVectorXd val(3);
124124
val << 1, 2, 3;
125125
Eigen::RowVectorXd adj(3);
126-
val << 7, 8, 9;
126+
adj << 7, 8, 9;
127127
Eigen::Matrix<stan::math::var, 1, Eigen::Dynamic> mat_var = val;
128128
stan::math::var_value<Eigen::RowVectorXd> var_value
129129
= stan::math::to_var_value(mat_var);

0 commit comments

Comments
 (0)