MCPcopy Create free account
hub / github.com/comaps/comaps / TestZigZag

Function TestZigZag

libs/routing/routing_tests/coding_test.cpp:26–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24
25template <typename T>
26void TestZigZag(T prev, T current)
27{
28 auto const delta = EncodeZigZagDelta(prev, current);
29 auto const decodedCurrent = DecodeZigZagDelta(prev, delta);
30 TEST_EQUAL(decodedCurrent, current, ("prev:", prev, "delta:", delta));
31}
32
33template <typename T>
34void TestZigZagUnsigned()

Callers 3

TestZigZagUnsignedFunction · 0.85
TestZigZagSignedFunction · 0.85
UNIT_TESTFunction · 0.85

Calls 2

EncodeZigZagDeltaFunction · 0.85
DecodeZigZagDeltaFunction · 0.85

Tested by

no test coverage detected