ericoporto / ImGi

AGS Script Module for Immediate Gui (based on rxi's Microui)
https://www.adventuregamestudio.co.uk/forums/index.php?topic=58842.0
Other
2 stars 2 forks source link

Move tests out of the shipped library #2

Open ericoporto opened 3 years ago

ericoporto commented 3 years ago

It's a bit too soon for the things in the public API but some internals could be tested.

I think I would just use my own tap module for that.

Right now, the code at least have some expect(bool expr) so at least it can do some sanity checks at runtime.

ericoporto commented 3 years ago

I actually added some minor tests, I obviously can add more, I need to move ImGi tests to a separate module.

I think it's possible to import the internals on other file and use it because AGS kinda don't care as long as things link fine at runtime.

I could even add an extra room and then rename it to room1.crm and use it to run the tests in the CI.