MCPcopy Create free account
hub / github.com/catchorg/Catch2 / step

Function step

extras/catch_amalgamated.cpp:8749–8754  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8747
8748template <typename FP>
8749FP step(FP start, FP direction, uint64_t steps) {
8750 for (uint64_t i = 0; i < steps; ++i) {
8751 start = Catch::nextafter(start, direction);
8752 }
8753 return start;
8754}
8755
8756// Performs equivalent check of std::fabs(lhs - rhs) <= margin
8757// But without the subtraction to allow for INFINITY in comparison

Callers 1

describeMethod · 0.70

Calls 1

nextafterFunction · 0.70

Tested by

no test coverage detected