Closed oleg-alexandrov closed 2 years ago
I'm okay with merging this if the windows json stuff continue to be a problem
Thanks. I think you can pull it in. The windows error is because of getopt.h is missing. That's what I use now to parse command line options. I will think of what to do about that. Maybe using boost, but that is not in libusgscsm's dependencies, and I would not want to add it. I'll try to implement a simple command line parser or something.
We may be able to use something like this depending on licensing https://github.com/Chunde/getopt-for-windows
I addressed all issues above. In particular there's a new test to load back the model state saved by the previous test.
As to adding units tests for individual functions, that may be a little too fine-grained and I don't see the point much. They are very small utilities and get tested by the two tests already in.