Skip to content

Add a failing test for X-column ordering inside a Y band - #235

Draft
webdevred wants to merge 2 commits into
masterfrom
x-column-sorting
Draft

Add a failing test for X-column ordering inside a Y band#235
webdevred wants to merge 2 commits into
masterfrom
x-column-sorting

Conversation

@webdevred

Copy link
Copy Markdown
Owner

The five frontmost left-side vertices in the y-sorting fixture sit in two vertical columns that Y and Z cannot separate, so a band sorted by Z alone climbs one column, jumps to the other and comes back. This adds the test that pins the wanted order. It is a draft because nothing implements it yet: the test fails, and the branch deliberately carries no production change. #234 has the geometry and why no y-sorting-threshold can fix it.

The threshold in the test is not free choice, and that is the part worth a second look. At 0.31 all five vertices land in one band, which is where the defect lives. Between 0.153 and 0.16 the Y bands happen to land on exactly the two columns and the assertion passes with nothing fixed at all, so the test would claim coverage it does not have. Both of those were run, not reasoned about.

No new fixture. The positions were already in examples/regression_jbeam/y-sorting-repro.jbeam, so that file now serves two tests and its comment says so, which is the one edit here outside test code.

The five frontmost nodes in the y-sorting fixture sit in two vertical
columns that Y and Z cannot separate, so sorting a band by Z alone
interleaves them. The fixture already had the positions, so it now serves
both this and the y-sorting-threshold test.
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