/** * @file tests/can_crc.cpp * @brief CAN packet CRC tests * @date Oct 20, 2015 * @author jjacobs * @copyright 2015 Dual Inventive Technology Centre B.V. * * CAN packet CRC tests */ #include #include TEST(can_str, transfertype) { ASSERT_STREQ("rep-err", di_can_transfertype_str(DI_CAN_TRANSFERTYPE_REPLY_ERR)); ASSERT_STREQ("rep", di_can_transfertype_str(DI_CAN_TRANSFERTYPE_REPLY)); ASSERT_STREQ("req", di_can_transfertype_str(DI_CAN_TRANSFERTYPE_REQUEST)); ASSERT_STREQ("pub", di_can_transfertype_str(DI_CAN_TRANSFERTYPE_PUBLISH)); }