Skip to content

test: give every dialect directive a case and a verdict - #784

Merged
samoht merged 2 commits into
mainfrom
author-dialect-round3
Sep 14, 2026
Merged

samoht merged 2 commits into
mainfrom
author-dialect-round3

Conversation

@samoht

@samoht samoht commented Sep 14, 2026

Copy link
Copy Markdown
Owner

The dialect sweep was a hand-written idiom list, so it stayed green while defects were reported in idioms it did not contain. Its inventory now comes from Tailwind's bundle, each case declares parity or a measured divergence, and it compiles through Tw_tools.Project, the CLI's project pipeline moved out of bin/main.ml.

The sheet tw prints for a scanned project was assembled inside the CLI, so the
sweep measuring that sheet against Tailwind rebuilt only half of it: the
utilities from an empty class list and the splice, never the classes a
project's own declarations route. A case whose markup carries a class could not
be measured. Tw_tools.Project.stylesheet is that assembly now, and the CLI calls
it; what it prints is unchanged byte for byte.
The sweep was written from the bugs already found, and it stayed green while
more were reported in idioms it did not contain: a list its author wrote can
only hold what its author already knew. The inventory comes from the oracle now.
Every at-keyword the pinned bundle handles beyond CSS's own, and every value
function it defines, must have a case, so one nobody thought to cover, or one a
Tailwind upgrade adds, fails here.

A case declares parity or a divergence with its reason, and a divergence that
starts matching fails as well, so a gap that gets fixed reports itself. Cases
compile through Tw_tools.Project, which lets them carry markup classes.
@samoht
samoht added this pull request to stack #786 September 14, 2026 14:56
@samoht
samoht merged commit bf8f43f into main Sep 14, 2026
5 of 6 checks passed
@samoht
samoht deleted the author-dialect-round3 branch September 14, 2026 18:37
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