Open Source Tomb Raider Engine
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930313233343536
  1. /*!
  2. * \file test/ScriptTest.h
  3. * \brief Tomb Raider Script Loader Unit Test Header
  4. *
  5. * \author xythobuz
  6. */
  7. #ifndef _SCRIPT_TEST_H
  8. #define _SCRIPT_TEST_H
  9. #include "ScriptPayload.h"
  10. static const unsigned int testPayloadCount = 4; // 4 gzipped files in data block
  11. static const char* testDescription[testPayloadCount] = {
  12. "TR2 PC", "TR2 PSX", "TR3 PC", "TR3 PSX"
  13. };
  14. static const unsigned char* testPayloads[testPayloadCount] = {
  15. tr2_pc_dat_z, tr2_psx_dat_z, tr3_pc_dat_z, tr3_psx_dat_z
  16. };
  17. static const unsigned int testSizes[testPayloadCount] = {
  18. sizeof(tr2_pc_dat_z), sizeof(tr2_psx_dat_z), sizeof(tr3_pc_dat_z), sizeof(tr3_psx_dat_z)
  19. };
  20. static const unsigned int testExpectedGameStringCount[testPayloadCount] = {
  21. 89, 89, 92, 92
  22. };
  23. static const unsigned int testExpectedPlatformStringCount[testPayloadCount] = {
  24. 41, 80, 41, 80
  25. };
  26. #endif