Debian Codegraph @

test_maxdomeii.cpp

raw
1 #include <gtest/gtest.h>
2 #include "maxdomeiidriver.h"
3
4
5 TEST(MaxDomeIIDriver, hexDump)
6 {
7 char data[] = "abcd";
8 char out[(sizeof(data) - 1)*3];
9
10 hexDump(out, data, sizeof(data) - 1);
11 ASSERT_STREQ(out, "61 62 63 64");
12 }
13
14
15 int main(int argc, char **argv)
16 {
17 ::testing::InitGoogleTest(&argc, argv);
18 return RUN_ALL_TESTS();
19 }