mirror of
https://github.com/MaskRay/ccls.git
synced 2025-02-22 00:19:28 +00:00
reenable serialize to/from tests
This commit is contained in:
parent
17c3a8bf57
commit
baa7d2c8cb
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user