| 11 | }; |
| 12 | |
| 13 | TEST_F(GeometryCorrectionTableTest, extrapolate) { |
| 14 | std::string correction_file = m_data_dir + "geometry.csv"; |
| 15 | GeometryCorrectionTable table(correction_file); |
| 16 | MatrixFr loop(4, 3); |
| 17 | loop << -0.1, -0.1, -0.1, |
| 18 | 0.1, -0.1, -0.1, |
| 19 | 0.1, 0.1, -0.1, |
| 20 | -0.1, 0.1, -0.1; |
| 21 | MatrixFr ori_loop = loop; |
| 22 | Vector3F edge_dir(0, 0, 1); |
| 23 | |
| 24 | table.apply_correction(edge_dir, loop); |
| 25 | ASSERT_NEAR(0.0, (loop - ori_loop).norm(), 1e-6); |
| 26 | } |
| 27 | |
| 28 | TEST_F(GeometryCorrectionTableTest, DISABLED_extrapolate1) { |
| 29 | std::string correction_file = m_data_dir + "geometry.csv"; |
nothing calls this directly
no test coverage detected