瀏覽代碼

Fix tests

Add correct includes.
master
TheoryOfNekomata 1 年之前
父節點
當前提交
6d513ca6c3
共有 3 個文件被更改,包括 6 次插入1 次删除
  1. +3
    -0
      CMakeLists.txt
  2. +2
    -1
      src/packages/game/input/input.test.c
  3. +1
    -0
      src/packages/game/output/output.test.c

+ 3
- 0
CMakeLists.txt 查看文件

@@ -227,6 +227,9 @@ add_executable(
src/packages/midi/IZ_midi.c
src/packages/midi/IZ_midi.h

src/packages/stdinc/IZ_string.h
__mocks__/src/packages/stdinc/IZ_string.mock.h

src/packages/game/input/input.test.c
)



+ 2
- 1
src/packages/game/input/input.test.c 查看文件

@@ -1,9 +1,10 @@
#include <bdd-for-c.h>
#include "../../../../__mocks__/dependencies/SDL2/SDL_keyboard.mock.h"
#include "../../../../__mocks__/dependencies/SDL2/SDL_joystick.mock.h"
#include "../../../../__mocks__/dependencies/SDL2/SDL_stdinc.mock.h"
#include "../../../../__mocks__/dependencies/minIni/minIni.mock.h"
#include "../../../../__mocks__/dependencies/portmidi/portmidi.mock.h"
//#include "../../stdinc/IZ_string.h"
#include "../../../../__mocks__/src/packages/stdinc/IZ_string.mock.h"
#include "IZ_keyboard.h"
#include "IZ_joystick.h"
#include "IZ_midi.h"


+ 1
- 0
src/packages/game/output/output.test.c 查看文件

@@ -1,3 +1,4 @@
#include <bdd-for-c.h>
#include "../../../../__mocks__/dependencies/minIni/minIni.mock.h"
#include "../../../../__mocks__/dependencies/SDL2/SDL_stdinc.mock.h"
#include "../../../../__mocks__/dependencies/SDL2/SDL_render.mock.h"


Loading…
取消
儲存