You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Restructure tests: split test and source code (#27)
* Restructure tests: extract inline tests to src/tests_unit/, consolidate integration tests
- Extract #[cfg(test)] mod tests blocks from 73 src/ files into src/tests_unit/ using #[path]
- Consolidate 6 integration test binaries into 1 (tests/main.rs)
- Move internal tests (property, reduction graph, trait consistency, unitdiskmapping algorithms) from tests/ to src/tests_unit/
- Keep only user-facing tests in tests/: integration.rs and reductions.rs
- All 1582 tests preserved, 0 failures, clippy clean
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Rename src/tests_unit/ to src/unit_tests/ and fix coverage gap
- Rename tests_unit → unit_tests for clearer distinction from src/testing/
- Fix test_brute_force_satisfiable: use valid_only(false) so the loop body
actually executes on the UNSAT instance, covering the 2 missing lines
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Fix review feedback: portable temp paths, consistent ConfigIterator, accurate comment
- Replace hardcoded /tmp/ paths in IO tests with std::env::temp_dir() + unique timestamps
- Fix ConfigIterator::total() to return 0 when num_variables == 0, matching iteration behavior
- Fix factoring test comment to accurately describe the assertion (at least one, not both)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: GiggleLiu <cacate0129@gmail.com>
0 commit comments