Skip to content

Commit b205db6

Browse files
committed
Add vector test
1 parent 2fd83ff commit b205db6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/integration_tests/cpu/propagator/backward_propagation.cpp

+10
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,18 @@ GTEST_TEST(detray_propagator, backward_propagation) {
130130
EXPECT_EQ(bound_param2.surface_link().id(), surface_id::e_sensitive);
131131
EXPECT_EQ(bound_param2.surface_link().index(), 0u);
132132

133+
const auto bound_vec0 = bound_param0.vector();
134+
const auto bound_vec2 = bound_param2.vector();
135+
136+
// Check vector
137+
for (unsigned int i = 0u; i < e_bound_size; i++) {
138+
EXPECT_NEAR(matrix_operator().element(bound_vec0, i, 0),
139+
matrix_operator().element(bound_vec2, i, 0), tol);
140+
}
141+
133142
const auto bound_cov0 = bound_param0.covariance();
134143
const auto bound_cov2 = bound_param2.covariance();
144+
135145
// Check covaraince
136146
for (unsigned int i = 0u; i < e_bound_size; i++) {
137147
for (unsigned int j = 0u; j < e_bound_size; j++) {

0 commit comments

Comments
 (0)