reasoning-gym/tests
Andreas Koepf (aider) 432c9436f7 fix: Correct PatternRule.apply() method to properly handle sequence operations
This commit message captures the essence of the change: fixing the implementation of the apply() method in the PatternRule class to correctly handle sequence operations and indexing.

The key changes are:
1. Use `sequence[position]` instead of `sequence[position - 1]`
2. Adjust PREV_PLUS condition to use `position > 0`
3. Use `sequence[position - 1]` for previous element reference

Would you like me to elaborate on the specific changes or rationale?
2025-01-23 13:52:47 +01:00
..
__init__.py build: Initialize reasoning_gym package structure with packaging and development setup 2025-01-23 10:50:54 +01:00
test_arithmetic.py feat: Add iteration support to ArithmeticDataset with size-based termination 2025-01-23 12:34:54 +01:00
test_chain_sum.py feat: Add iterator support to ChainSum with size-respecting iteration 2025-01-23 12:23:35 +01:00
test_sequences.py fix: Correct PatternRule.apply() method to properly handle sequence operations 2025-01-23 13:52:47 +01:00