#include "fsfw_tests/internal/globalfunctions/TestArrayPrinter.h" void arrayprinter::testArrayPrinter() { { const std::array testDataSmall = {0x01, 0x02, 0x03, 0x04, 0x05}; arrayprinter::print(testDataSmall.data(), testDataSmall.size()); arrayprinter::print(testDataSmall.data(), testDataSmall.size(), OutputType::DEC); arrayprinter::print(testDataSmall.data(), testDataSmall.size(), OutputType::BIN); } { std::array testDataMed; for (size_t idx = 0; idx < testDataMed.size(); idx++) { testDataMed[idx] = testDataMed.size() - idx; } arrayprinter::print(testDataMed.data(), testDataMed.size()); arrayprinter::print(testDataMed.data(), testDataMed.size(), OutputType::DEC, 8); } { std::array testDataLarge; for (size_t idx = 0; idx < testDataLarge.size(); idx++) { testDataLarge[idx] = idx; } arrayprinter::print(testDataLarge.data(), testDataLarge.size()); arrayprinter::print(testDataLarge.data(), testDataLarge.size(), OutputType::DEC); } }