Moved the game engine into its own unit and then made a failing test for it.
This commit is contained in:
parent
fb5bf9d733
commit
440be444ea
7 changed files with 82 additions and 49 deletions
11
meson.build
11
meson.build
|
@ -28,7 +28,8 @@ dependencies = [
|
|||
]
|
||||
|
||||
executable('escape_turings_tarpit',
|
||||
'escape_turings_tarpit.cpp',
|
||||
['game_engine.cpp',
|
||||
'escape_turings_tarpit.cpp'],
|
||||
dependencies: dependencies)
|
||||
|
||||
executable('regtest', 'regtest.cpp',
|
||||
|
@ -40,6 +41,10 @@ executable('ftxtest', 'ftxtest.cpp',
|
|||
executable('ftx_thread_test', 'ftx_thread_test.cpp',
|
||||
dependencies: dependencies)
|
||||
|
||||
executable('tests', [
|
||||
'tests/test1.cpp'],
|
||||
runtests = executable('runtests', [
|
||||
'game_engine.cpp',
|
||||
'tests/test1.cpp',
|
||||
'tests/game_engine.cpp'],
|
||||
dependencies: dependencies + [doctest])
|
||||
|
||||
test('the tests', runtests)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue