14 std::string fileName(
"value_test_vector.data");
16 std::vector<T> vecRef;
17 for(
size_t i(0lu); i < nbValue; ++i){vecRef.push_back(i);}
19 std::vector<T> vecValue;
26 testSimpleVectorValue<long unsigned int>(
"long unsigned int");
27 testSimpleVectorValue<unsigned int>(
"unsigned int");
28 testSimpleVectorValue<unsigned short>(
"unsigned short");
29 testSimpleVectorValue<unsigned char>(
"unsigned char");
30 testSimpleVectorValue<long int>(
"long int");
31 testSimpleVectorValue<int>(
"int");
32 testSimpleVectorValue<short>(
"short");
33 testSimpleVectorValue<char>(
"char");
34 testSimpleVectorValue<int8_t>(
"int8_t");
35 testSimpleVectorValue<float>(
"float");
36 testSimpleVectorValue<double>(
"double");
39 int main(
int argc,
char** argv){
void testVectorDataFile()
Test if data size is Ok.
int main(int argc, char **argv)
void testSimpleVectorValue(const std::string &testTypeName)
Abstract check a vector of values stored in a file.
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.