hgducharme / meatball

A C++17 chess engine written entirely from scratch (WIP)
GNU General Public License v2.0
0 stars 0 forks source link

Add `test/unit/` and `test/integration/` subdirectories #17

Closed hgducharme closed 5 months ago

hgducharme commented 1 year ago

test_movegeneration.cpp is an integration test with attacktables.cpp and chessboard.cpp. We probably don't need to do a unit test on our attack tables (due to how hard it is to generate test data for this), and it's probably safe to just let test_movegenerator.cpp test both the MoveGenerator class and also our attack table constants.

hgducharme commented 1 year ago

Also, I think I shouldn't be testing types.h with test_types.cpp. Let those constants be tested with the chessboard tests

hgducharme commented 1 year ago

Commits 6ff18f1 and 566b43a close this