The latest build is failing because of new unit tests written to perform the following scenario:
Take war3map data and translate it to JSON (warToJson)
Take that JSON and translate it to war3map data (jsonToWar)
Compare the bytes of both war3map files -- they should match exactly
This makes sense because both the JSON and war3map formats, although different formats, should represent the same data. And it does not matter how many times the developer switches between the two, they should restore the original data format each time.
For instance, there are small discrepancies in a .w3a file:
The latest build is failing because of new unit tests written to perform the following scenario:
war3map
data and translate it to JSON (warToJson)war3map
data (jsonToWar)war3map
files -- they should match exactlyThis makes sense because both the JSON and war3map formats, although different formats, should represent the same data. And it does not matter how many times the developer switches between the two, they should restore the original data format each time.
For instance, there are small discrepancies in a![image](https://user-images.githubusercontent.com/4079034/41324267-a5b6df80-6e81-11e8-88e2-0e8f5bae8962.png)
.w3a
file:This may be related to #18.