Add comprehensive tests for entity dispatch, file system, fixed map, flex archive, isometric controls, and crash setup

- Enhance `entity_dispatch_entry_tests.cpp` with additional assertions for event type checks, group ID increments, and error handling.
- Refactor `file_system_tests.cpp` to streamline probe execution and enhance output validation.
- Extend `fixed_map_tests.cpp` to cover retail map loading, item classification, and process creation scenarios.
- Introduce new checks in `flex_archive_tests.cpp` for usecode loading and event handling, ensuring robust validation of game data.
- Add tests in `isometric_controls_tests.cpp` for controller direction mapping based on scan codes.
- Implement `test_crash_setup.cpp` to initialize crash diagnostics for improved error handling during tests.
This commit is contained in:
Maddo 2026-09-26 15:36:11 +02:00
commit c346b0e1a7
17 changed files with 1207 additions and 92 deletions

View file

@ -11,6 +11,12 @@ int main()
assert(!remorse::controllerWalkRequested(0x40));
assert(remorse::controllerWalkRequested(0x41));
assert(remorse::controllerWalkRequested(0x42));
constexpr remorse::u8 scans[] = {0x47, 0x48, 0x49, 0x4b, 0x4d, 0x4f, 0x50, 0x51};
constexpr remorse::u8 directions[] = {12, 14, 0, 10, 2, 8, 6, 4};
for (std::size_t index = 0; index < std::size(scans); ++index) {
assert(remorse::controllerDirectionFromScan(scans[index]) == directions[index]);
}
assert(!remorse::controllerDirectionFromScan(0x52));
constexpr remorse::s32 originX = 1024;
constexpr remorse::s32 originY = 2048;
const remorse::ScreenPoint origin = remorse::projectToScreen({originX, originY, 0});