fsfw/unittests/tmtcpacket/testCcsds.cpp
Robin Mueller 8465670374
Some checks failed
fsfw/fsfw/pipeline/pr-development There was a failure building this commit
separate unittest folder
2022-07-18 11:42:51 +02:00

12 lines
396 B
C++

#include <catch2/catch_test_macros.hpp>
#include "fsfw/tmtcpacket/SpacePacket.h"
TEST_CASE("CCSDS Test", "[ccsds]") {
REQUIRE(spacepacket::getTcSpacePacketIdFromApid(0x22) == 0x1822);
REQUIRE(spacepacket::getTmSpacePacketIdFromApid(0x22) == 0x0822);
REQUIRE(spacepacket::getTcSpacePacketIdFromApid(0x7ff) == 0x1fff);
REQUIRE(spacepacket::getTmSpacePacketIdFromApid(0x7ff) == 0xfff);
}