mirror of
https://github.com/scp-fs2open/fs2open.github.com.git
synced 2026-11-10 04:31:34 -10:00
This adds unit tests (or maybe these count more as functional tests) for parsing the intelligence data displayed in the tech room. It is parsed from species.tbl by code/menuui/techroom.cpp and stored in the global array Intel_info. The number of entries is saved in the global int Integer_info_size. Every test has its own mod dir with a species.tbl that it parses by calling techroom_intel_init(). The test fixture resets the intel state with techroom_intel_reset() between tests. These tests assume that the file is preprocessed correctly, so it does not try to test if e.g. comments are removed correctly, ... Only the parsing that is unique to species.tbl is tested.