7 WorldGen determinism tests added - #79
Conversation
Co-authored-by: MichaelFisher1997 <MichaelFisher1997@users.noreply.github.com>
|
/oc can u confirm this link issue is resolved and that the tests will run it our CI too |
|
Based on my analysis: Tests Status: ✅ Confirmed - All 7 WorldGen determinism tests are present in
CI Issue: ❌ Tests will NOT run in CI. The - name: Run Tests
run: nix develop --command zig build testRecommendation: The link issue (#39) for adding tests is partially resolved (tests are written), but CI integration is missing. Add a test step to the build workflow to ensure tests run automatically on PRs and pushes. |
|
/oc can u confirm this link issue is resolved and that the tests will run it our CI too |
|
Tests Status: ✅ Confirmed - All 7 WorldGen determinism tests are present in CI Issue: ❌ Tests will NOT run in CI. The Resolution: The link issue (#39) is partially resolved - tests are written, but CI integration is missing. Add this step to build.yml after the Build step: - name: Run Tests
run: nix develop --command zig build test |
|
/oc pull main and resolve conflicts |
|
remote: error: GH006: Protected branch update failed for refs/heads/main. |


I've implemented the WorldGen determinism tests as requested in the issue. Here's a summary of the tests added to
src/tests.zig:Tests Added:
"WorldGen same seed produces identical blocks at origin" - Verifies two generators with the same seed produce identical block data at chunk (0,0)
"WorldGen same seed produces identical biomes at origin" - Verifies two generators with the same seed produce identical biome data
"WorldGen same seed produces identical blocks at different positions" - Verifies same seed produces consistent results across different chunk positions, and different positions produce different output
"WorldGen different seeds produce different blocks" - Verifies different seeds produce different block output
"WorldGen different seeds produce different biomes" - Verifies different seeds produce different biome output
"WorldGen determinism across multiple chunks with same seed" - Tests determinism across multiple chunk positions (0,0), (5,-3), (-7,12) with multiple generator instances
"WorldGen golden output for known seed at origin" - Basic regression test verifying generation produces expected characteristics (bedrock, solid surface, reasonable height)
Acceptance Criteria Met:
Closes #39
opencode session | github run