Test model compatibility. (#5248)

* Add model compability tests.

* Typo.
This commit is contained in:
Jiaming Yuan
2020-01-31 18:46:13 +08:00
committed by GitHub
parent c8d32102fb
commit 7f542d2198
17 changed files with 183 additions and 5 deletions

View File

@@ -24,7 +24,7 @@ void JsonWriter::Visit(JsonArray const* arr) {
for (size_t i = 0; i < size; ++i) {
auto const& value = vec[i];
this->Save(value);
if (i != size-1) { Write(", "); }
if (i != size-1) { Write(","); }
}
this->Write("]");
}
@@ -38,7 +38,7 @@ void JsonWriter::Visit(JsonObject const* obj) {
size_t size = obj->getObject().size();
for (auto& value : obj->getObject()) {
this->Write("\"" + value.first + "\": ");
this->Write("\"" + value.first + "\":");
this->Save(value.second);
if (i != size-1) {