Add test for returning an initialized Report descriptor

This commit is contained in:
mbanth
2021-05-24 16:01:54 +01:00
parent eb6d3b0869
commit f1a1ee077f

View File

@@ -10,3 +10,10 @@ void test_uninitialised_hidGetReportDescriptor()
unsigned char* reportDescPtr = hidGetReportDescriptor();
TEST_ASSERT_NULL( reportDescPtr );
}
void test_initialised_hidGetReportDescriptor()
{
hidInitReportDescriptor();
unsigned char* reportDescPtr = hidGetReportDescriptor();
TEST_ASSERT_NOT_NULL( reportDescPtr );
}