Skip to content

Add LiuNian & LiuYue generators with DaYun integration and unit tests#4

Open
cto-new[bot] wants to merge 1 commit intoPvfrom
feat-liunian-liuyue-generators-pillars-dayun-range-tests
Open

Add LiuNian & LiuYue generators with DaYun integration and unit tests#4
cto-new[bot] wants to merge 1 commit intoPvfrom
feat-liunian-liuyue-generators-pillars-dayun-range-tests

Conversation

@cto-new
Copy link

@cto-new cto-new bot commented Oct 24, 2025

Summary

This PR adds robust generators for producing annual and monthly pillars (LiuNian and LiuYue) associated with DaYun cycles, including filtering, ordering, and full test coverage.

Details

  • Implements generateLiuNian for chronological annual pillar sequences within specified year ranges, with each entry linked to its DaYun cycle
  • Implements generateLiuYue for chronological monthly pillar sequences within specified year/month ranges, with DaYun association
  • Provides input validation, error handling, and ordering guarantees
  • Adds comprehensive unit tests for edge cases, linkage, and error conditions
  • Includes a runnable example and updated README with usage and scenario

Warning: Task VM test is not passing, cto.new will perform much better if you fix the setup

Introduce generators for annual (LiuNian) and monthly (LiuYue) pillars over user-specified ranges, associating each entry with corresponding DaYun cycles.

- Expose robust utilities for pillar cycles, shifting, validation, and chronological filtering
- Support filters by year/month range and precise DaYun linkage for each result
- Provide comprehensive unit tests validating order, range filtering, and error handling
- Add sample scenario and clear README instructions

These utilities enable accurate generation and analysis of pillar sequences within Bazi/DaYun context. No breaking changes.
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.

0 participants