Skip to content

test: say what the ordering oracle checks, and what it cannot - #744

Merged
samoht merged 1 commit into
exact-animations-assertionsfrom
harness-ordering-claim
Sep 14, 2026
Merged

samoht merged 1 commit into
exact-animations-assertionsfrom
harness-ordering-claim

Conversation

@samoht

@samoht samoht commented Sep 13, 2026

Copy link
Copy Markdown
Owner

check_ordering_matches runs the canonical differ, which suppresses every reorder it can prove cascade-neutral — two rules reorder observably only where they overlap in both dimensions, the pairing interacting_pairs finds. A family emitted in the wrong band passes whenever nothing in the band between contends with it.

Its doc claimed it "compares the ordering of utilities… failing if they differ". test/parity/sheet_order.ml already says otherwise, so the two files contradicted each other, and twenty-seven suites call this under names ending "suborder matches Tailwind".

The assertion is worth keeping — it catches a wrong value, a dropped or surplus declaration, a missing rule, and a reorder that can change the cascade. Only the ordering half of the name was unearned. check_class_order reads positions back for the classes it is given; sheet_order_gap is the whole-sheet answer.

@samoht
samoht added this pull request to stack #728 September 13, 2026 14:24
check_ordering_matches runs the canonical differ, which suppresses every
reorder it can prove cascade-neutral: two rules reorder observably only where
they overlap in both dimensions, which is the pairing interacting_pairs finds.
A family emitted in the wrong band therefore passes whenever nothing in the
band between contends with it.

Its doc claimed it compares the ordering of utilities and fails when they
differ. test/parity/sheet_order.ml already says otherwise, so the two files
contradicted each other, and twenty-seven suites call this under names ending
"suborder matches Tailwind".

The assertion is worth keeping: it catches a wrong value, a dropped or surplus
declaration, a missing rule, and a reorder that can change the cascade. Only
the ordering half of the name was unearned. check_class_order reads positions
back for the classes it is given, and sheet_order_gap is the whole-sheet
answer.
@samoht
samoht force-pushed the harness-ordering-claim branch from bd594e0 to 0823839 Compare September 13, 2026 19:26
@samoht
samoht merged commit 3632d69 into main Sep 14, 2026
3 checks passed
@samoht
samoht deleted the harness-ordering-claim branch September 14, 2026 09:57
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