Skip to content
Snippets Groups Projects
Commit da5d59a7 authored by Julien Osman's avatar Julien Osman
Browse files

BUG: Update the test ioTuMetaDataKeyTest according to last changes in class MetaDataKey

parent b1c95ce7
No related branches found
No related tags found
No related merge requests found
mytime : 2009-08-10T10:30:08.142149Z
mytime : 2009-08-10T10:30:08.142149Z
First try size: 512
Second try size: 264
Third try size: 264
\ No newline at end of file
First try size: 608
Second try size: 312
Third try size: 312
......@@ -63,20 +63,9 @@ void otbMetadataKeyTest(char* argv[])
std::ofstream outfile(outFileName);
MetaData::Time mytime;
char buffer[] = "2009-08-10T10:30:08.142149Z";
std::string bufferStr("2009-08-10T10:30:08.142149Z");
try
{
mytime = boost::lexical_cast<MetaData::Time>(buffer);
}
catch(boost::bad_lexical_cast&)
{
outfile << "Bad cast into MetaData::Time\n";
}
outfile << "mytime : "<< mytime << "\n";
try
{
mytime = Utils::LexicalCast<MetaData::Time,std::string>(bufferStr, std::string("T"));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment