Starter project for SDL2.
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.

31 lines
647 B

  1. #include "bdd-for-c.h"
  2. #include "../../game/config/IZ_config.h"
  3. spec("config") {
  4. describe("LoadConfig") {
  5. static IZ_Config config;
  6. it("should load default config values") {
  7. IZ_LoadConfig(&config);
  8. check(
  9. config.video.width == 640,
  10. "Default value for Video.Width is not loaded."
  11. );
  12. check(
  13. config.video.height == 480,
  14. "Default value for Video.Height is not loaded."
  15. );
  16. check(
  17. config.video.max_fps == 30,
  18. "Default value for Video.MaxFps is not loaded."
  19. );
  20. check(
  21. config.input.gamepad_axis_threshold == 8000,
  22. "Default value for Input.GamepadAxisThreshold is not loaded."
  23. );
  24. }
  25. }
  26. }