Skip to content

Conversation

@tphummel
Copy link
Owner

@tphummel tphummel commented Jan 5, 2026

Add comprehensive tests for betting strategies to support future strategy
composition features:

Priority 1: Add missing tests

  • Add 5 tests for minPassLinePlaceSixEight strategy (previously untested)
  • Export placeSixEightUnlessPoint for testability

Priority 2: Cover all game states

  • Test all points (4, 5, 6, 8, 9, 10) with correct odds multiples
  • Add full roll cycle tests (comeout → point set → neutral rolls → seven out)

Priority 3: Test composition properties

  • Add invariant tests (bets.new accuracy, immutability, idempotence)
  • Add composition contract tests (composability, order independence, error handling)

Test count increased from 13 to 31 tests for betting strategies
All tests passing with 84.37% statement coverage

claude added 2 commits January 5, 2026 14:04
Add comprehensive tests for betting strategies to support future strategy
composition features:

Priority 1: Add missing tests
- Add 5 tests for minPassLinePlaceSixEight strategy (previously untested)
- Export placeSixEightUnlessPoint for testability

Priority 2: Cover all game states
- Test all points (4, 5, 6, 8, 9, 10) with correct odds multiples
- Add full roll cycle tests (comeout → point set → neutral rolls → seven out)

Priority 3: Test composition properties
- Add invariant tests (bets.new accuracy, immutability, idempotence)
- Add composition contract tests (composability, order independence, error handling)

Test count increased from 13 to 31 tests for betting strategies
All tests passing with 84.37% statement coverage
@tphummel tphummel merged commit e51e06c into main Jan 5, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants