Skip to content

Commit 81d0468

Browse files
gesttalttclaude
andcommitted
REFACTOR: Reorganize tests into python/ and cpp/ subdirectories
Improved test organization: - Create tests/python/ for all Python tests - Create tests/cpp/ for all C++ tests - Move 12 Python test files to tests/python/ - Move 8 C++ test files to tests/cpp/ Updated test infrastructure: - Update run_tests.py to reference python/ subdirectory - Fix sys.path imports in Python tests for new directory depth - Update capability detection imports Validated functionality: - All test imports corrected (dirname chain extended) - Test runner successfully finds and executes tests - Verified with test_errors.py suite (all tests passing) Benefits: - Clear separation of Python vs C++ tests - Easier navigation and organization - Consistent with project-wide reorganization Impact: Zero functional changes, pure organizational improvement Next: Update build scripts to reference new test paths if needed 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 897dc6f commit 81d0468

22 files changed

Lines changed: 13 additions & 12 deletions

.claude/CLAUDE.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ ed2bfdc FEAT: Add comprehensive build cleanup system and fix path inconsistencie
551551
2. **Scalar implementation** - Branch-free LUT in ternary_algebra.h
552552
3. **LUT generation** - Compile-time constexpr in ternary_lut_gen.h
553553
4. **SIMD kernel** - AVX2 vectorization in ternary_simd_kernels.h
554-
5. **Python binding** - pybind11 wrapper in ternary_simd_engine.cpp
554+
5. **Python binding** - pybind11 wrapper in bindings_core_ops.cpp
555555
6. **Correctness tests** - Comprehensive test coverage
556556
7. **Performance benchmark** - Validate speedup vs Python
557557
8. **Documentation** - API docs with examples
@@ -749,6 +749,7 @@ pip install matplotlib transformers
749749
- What is the deployment status (production/validated/pending)?
750750
- What phase is this (for fusion operations)?
751751
- When should we promote to production?
752+
- Does this belong in ternary_core/ (kernel) or ternary_engine/lib/ (library)?
752753

753754
---
754755

0 commit comments

Comments
 (0)