Moved the game engine into its own unit and then made a failing test for it.

This commit is contained in:
Zed A. Shaw 2024-08-09 23:01:06 -04:00
parent fb5bf9d733
commit 440be444ea
7 changed files with 82 additions and 49 deletions

View file

@ -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)