reenable serialize to/from tests

This commit is contained in:
Jacob Dufault 2017-04-05 01:30:19 -07:00
parent 17c3a8bf57
commit baa7d2c8cb

View File

@ -84,9 +84,8 @@ void DiffDocuments(std::string path, rapidjson::Document& expected, rapidjson::D
} }
void VerifySerializeToFrom(IndexedFile& file) { void VerifySerializeToFrom(IndexedFile& file) {
return; // TODO: reenable
std::string expected = file.ToString(); std::string expected = file.ToString();
std::string actual = Deserialize("foo.cc", Serialize(file)).value().ToString(); std::string actual = Deserialize("--.cc", Serialize(file)).value().ToString();
if (expected != actual) { if (expected != actual) {
std::cerr << "Serialization failure" << std::endl;; std::cerr << "Serialization failure" << std::endl;;
assert(false); assert(false);