test: add independent placement validation

Establish a CTest harness before changing solver behavior. Validate board dimensions, multiplicities, bounds, overlap and coverage against independent placement data, including known order-8 and constructed order-9 fixtures.

Document Debug and sanitizer workflows while keeping the defects tracked by #7 and #14 separate. Prepare a result adapter so the feasible solver regression can be enabled with the completion fix.

Tests: Release, ASan and UBSan CTest suites (3 passed each)

Refs: #1
This commit was merged in pull request #17.
This commit is contained in:
Codex instance
2026-07-30 16:40:29 +01:00
parent 65c748aab3
commit 0b65501c73
5 changed files with 333 additions and 1 deletions
+10
View File
@@ -5,3 +5,13 @@ set(CMAKE_CXX_STANDARD 20)
add_executable(partridge_cpp
main.cc)
include(CTest)
if(BUILD_TESTING)
add_executable(partridge_tests
tests/tests.cc)
add_test(NAME validator COMMAND partridge_tests validator)
add_test(NAME construction COMMAND partridge_tests construction)
add_test(NAME solver-small COMMAND partridge_tests solver-small)
endif()