Google Test macros seem not to work with Lambda functions
问题 So, I have the following bit of code. Regardless of what the details of the Interpolator class are, it should in this case NOT throw an exception and that is what I wanted to test. TEST(errorhandlingInterpolator, toolargeInput) { const size_t numSamples = 100000; std::array<double, numSamples> bf{{0.0, 0.5, 1.0, 0.0, 0.5, 0.0}}; std::array<double, numSamples> ts{{0.0, 0.0, 0.0, 0.5, 0.5, 1.0}}; std::array<double, numSamples> current{ {0.13, 0.83, 0.96, 0.22, 0.30, 0.54} }; ASSERT_NO_THROW( [&