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

Function UNIT_TEST

libs/coding/coding_tests/endianness_test.cpp:5–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3#include "coding/endianness.hpp"
4
5UNIT_TEST(Endianness1Byte)
6{
7 TEST_EQUAL(uint8_t(0), ReverseByteOrder<uint8_t>(0), ());
8 TEST_EQUAL(uint8_t(17), ReverseByteOrder<uint8_t>(17), ());
9 TEST_EQUAL(uint8_t(255), ReverseByteOrder<uint8_t>(255), ());
10
11 TEST_EQUAL(uint8_t(0), ReverseByteOrder<uint8_t>(0), ());
12 TEST_EQUAL(uint8_t(17), ReverseByteOrder<uint8_t>(17), ());
13 TEST_EQUAL(uint8_t(255), ReverseByteOrder<uint8_t>(255), ());
14}
15
16UNIT_TEST(Endianness12Bytes)
17{

Callers

nothing calls this directly

Calls 1

ReverseByteOrderFunction · 0.85

Tested by

no test coverage detected