With the new Rust formatting library, of course, all of our old float printing tests are failing, because they just used the default %f formatting for C floats.
I kind of think I like Rust's default formatting a bit better, as it is something like "shortest accurate representation."
Still, ideally we figure out the most convenient formatting for our games, implement that, and then fix all the tests.
The other option would be to implement some sort of formatting specification syntax, and then make all the float-based tests specify a specific format. That way, even if the default format changes, the tests would keep passing.
With the new Rust formatting library, of course, all of our old float printing tests are failing, because they just used the default
%fformatting for C floats.I kind of think I like Rust's default formatting a bit better, as it is something like "shortest accurate representation."
Still, ideally we figure out the most convenient formatting for our games, implement that, and then fix all the tests.
The other option would be to implement some sort of formatting specification syntax, and then make all the float-based tests specify a specific format. That way, even if the default format changes, the tests would keep passing.