rossturner / king-under-the-mountain

A simulation-based strategy game written in Java using LibGDX
MIT License
106 stars 17 forks source link

Fix all unit tests. #23

Closed nanodeath closed 3 months ago

nanodeath commented 3 months ago

Some of these changes were trivial (fixing mocks), but others were less so (checking swatchColors and the i18n tidy function fix). Let me know if those were fixed incorrectly or if you have questions.

One of the tests required basically an initialized Race object, which would be hard to mock. I just copied the definition of Dwarf over from the production file to a test file and removed the other races to make things a bit simpler.

Closes #22.