17 #include <gtest/gtest.h> 23 TEST(DecoderTest, testChecksumValidation)
26 const std::string line(
"Hokuyo");
31 TEST(DecoderTest, testDecodeSingle)
34 const std::string line2(
"CB");
36 ASSERT_EQ(*dec2.
begin(), 1234u);
38 const std::string line3(
"1Dh");
40 ASSERT_EQ(*dec3.
begin(), 5432u);
42 const std::string line4(
"m2@0");
44 ASSERT_EQ(*dec4.
begin(), 16000000u);
47 int main(
int argc,
char** argv)
49 testing::InitGoogleTest(&argc, argv);
51 return RUN_ALL_TESTS();
uint8_t getChecksum() const
int main(int argc, char **argv)
TEST(DecoderTest, testChecksumValidation)