diff --git a/gateway/test/native/test_decoder/decoder.cpp b/gateway/test/native/test_decoder/decoder.cpp index dea0636..c61dbf3 100644 --- a/gateway/test/native/test_decoder/decoder.cpp +++ b/gateway/test/native/test_decoder/decoder.cpp @@ -1,4 +1,5 @@ #include +#include #include "RcDecoder.h" RcDecoder d; @@ -14,14 +15,14 @@ void tearDown(void) { void test_1_2_on(void) { d.decode(5574993); TEST_ASSERT_EQUAL(true, d.state); - TEST_ASSERT_EQUAL(1, d.group); + TEST_ASSERT_EQUAL_CHAR_ARRAY("00001", d.group, 5); TEST_ASSERT_EQUAL(2, d.device); } void test_1_1_off(void) { d.decode(5571924); TEST_ASSERT_EQUAL(false, d.state); - TEST_ASSERT_EQUAL(1, d.group); + TEST_ASSERT_EQUAL_CHAR_ARRAY("00001", d.group, 5); TEST_ASSERT_EQUAL(1, d.device); }