Skip to content

Fix/junction and test helper bugs - #7

Open
ViezeVingertjes wants to merge 3 commits into
pavel-krivanek:masterfrom
ViezeVingertjes:fix/junction-and-test-helper-bugs
Open

ViezeVingertjes wants to merge 3 commits into
pavel-krivanek:masterfrom
ViezeVingertjes:fix/junction-and-test-helper-bugs

Conversation

@ViezeVingertjes

Copy link
Copy Markdown
  • Fix neighbor wiring in updateCompactRegions for horizontally adjacent junctions. Shared strips were linked via compactUp (always nil) instead of the correct left/right compact regions.
  • Place P (yellow) silicon instead of N (red). UI was already correct; only the test helper was wrong.
  • Remove random currentState from ChDGeneratorRegion. Input pads now use normal stored region state, so highlights and simulation stay consistent.

Each fix includes a regression test (ChDHorizontalCompactRegionTest, ChDAreaTest>>#testAddPAtSetsPSilicon, ChDAreaInputRegionsTest>>#testInputRegionCurrentStateReflectsStoredValue).

The horizontal branch of updateCompactRegions linked neighbor slots with
compactUp (always nil) instead of the shared compact strip.
Input pads now use the normal region state instead of atRandom on
every read, so highlights and simulation stay consistent.
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.

1 participant