modified unit tests to not use floats for map keys, complex now uses boost_check_close for double types

This commit is contained in:
Shane Grant
2013-07-09 10:24:20 -07:00
parent 035b01b473
commit cc8784660c
3 changed files with 79 additions and 46 deletions

View File

@@ -314,11 +314,13 @@ int main()
int xxx[] = {-1, 95, 3};
archive( xxx );
cereal::XMLOutputArchive archive2(std::cout, 10, true);
cereal::XMLOutputArchive archive2(std::cout, 10);
archive2( xxx );
std::vector<int> yyy = {1, 2, 3};
archive2( yyy );
archive2.saveBinaryValue( xxx, sizeof(int)*3 );
}
{