| 17 | namespace gmt = grid_map_test; |
| 18 | |
| 19 | TEST(CubicConvolutionInterpolation, FlatWorld) |
| 20 | { |
| 21 | const int seed = rand(); |
| 22 | gmt::rndGenerator.seed(seed); |
| 23 | auto map = gmt::createMap(gm::Length(2.0, 2.0), 0.1, gm::Position(0.0, 0.0)); |
| 24 | auto trueValues = gmt::createFlatWorld(&map); |
| 25 | const auto queryPoints = gmt::uniformlyDitributedPointsWithinMap(map, 100); |
| 26 | |
| 27 | verifyValuesAtQueryPointsAreClose(map, trueValues, queryPoints, gm::InterpolationMethods::INTER_CUBIC_CONVOLUTION); |
| 28 | |
| 29 | if (::testing::Test::HasFailure()) { |
| 30 | std::cout << "\n Test CubicConvolutionInterpolation, FlatWorld failed with seed: " << seed |
| 31 | << std::endl; |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | TEST(CubicConvolutionInterpolation, RationalFunctionWorld) |
| 36 | { |
nothing calls this directly
no test coverage detected