14 std::string fileName(
"value_test_list.data");
17 for(
size_t i(0lu); i < nbValue; ++i){vecRef.push_back(i);}
19 std::list<T> vecValue;
26 testSimpleListValue<long unsigned int>(
"long unsigned int");
27 testSimpleListValue<unsigned int>(
"unsigned int");
28 testSimpleListValue<unsigned short>(
"unsigned short");
29 testSimpleListValue<unsigned char>(
"unsigned char");
30 testSimpleListValue<long int>(
"long int");
31 testSimpleListValue<int>(
"int");
32 testSimpleListValue<short>(
"short");
33 testSimpleListValue<char>(
"char");
34 testSimpleListValue<int8_t>(
"int8_t");
35 testSimpleListValue<float>(
"float");
36 testSimpleListValue<double>(
"double");
37 testSimpleListValue<bool>(
"bool");
40 int main(
int argc,
char** argv){
void testSimpleListValue(const std::string &testTypeName)
Abstract check a list of values stored in a file.
int main(int argc, char **argv)
void testListDataFile()
Test if data size is Ok.
bool data_load(FILE *iter, T &data)
Load data from a message.
bool data_save(FILE *iter, const T &data)
Save data in a message.
#define data_stream_assert(isOk)
bool checkValue(const std::string &testName, const T &givenSize, const T &referenceSize)
Check given value compare to the reference value.