# Tessera ## Thorough tests A few Tessera tests carry `[Thorough]`, and the runner skips them unless given `--thorough`. A normal build runs the suite without it, and says nothing about the tests it left out. Sweeps in `Typesetting/VisualLineIndexTests.cs` are thorough. Nine in `NoteEditTests` (the `…_AnywhereInAText` and `…_InAPartlyCountedText` sweeps, except the line feed, carriage return and CR LF ones that insert anywhere) and fifteen in `ChunkedLinesTests` (the `MatchAFullLayout_*` widths and the `Inserting/Replacing/Deleting/Editing…MatchesAFullLayout` edits) are thorough. The tests left running catch every edit-path mutant they catch and cover the same lines. In `Editing/EditBufferTests.cs`, 25 of the `WindowCharsTests` sweeps are thorough: the `…MatchesWholeLines` ones for text shapes and scripts. The five kept are `RunsOfSpaces_`, `CombiningMarks_`, `Cyrillic_`, `HardBreaksOfEveryKind_` and `InsertingAndReplacingInMarksAndPairs_`. They catch every window-cut and resume mutant any of the 30 caught. In `WidthChunkedLinesTests`, seven sweeps are thorough: the `InsertingAChar_`, `InsertingAWord_`, `DeletingSomeChars_` and `ReplacingAChar_` edit sweeps, and the `SpacedTexts_MatchAFullLayout`, `ShortLines_` and `OddTexts_…WithTrailingSpacesWrapping` text sweeps. The rest catch every chunk-width, kerning and hang mutant they did. In `SplicedRowsTests`, six are thorough: four of the `RowOfTests` per-replacement sweeps (the char and wrapped-lines ones stay) and two `TotalRowsTests` chunked-line tests, `OnAChunkedLine_WhenTheRowsAfterAreShifted_` and `OnAChunkedLine_AmongShortOnes_`. `OnAChunkedLineOfProse_…` stays, as the only one left that splices at a chunk edge. In `Editing/SplicedTextTests.cs`, `AgreesWithAStringSourceTests.OnTheLineCountAndNumbersInATextOfManyLines` is thorough. `OnTheLineQueriesAtEveryIndex` runs over the paged source and insertions up to 100 chars. Longer ones and the string source are covered by `OnTheLineQueriesInLongLines` and the line-count tests. Every `SplicedText.cs` mutant caught before is still caught. Two random-text tests are gone, `LineBreakIteratorTests.ByRulesAloneTests.AgreesWithThePairTable_OnRandomText` and `LineLayoutTests.Unconstrained_AgreesWithTheGeneralPath_OnRandomText`. Every `LineBreakPairTable` and `LineLayout` mutant they caught is caught by a named test, and the one line only they covered, the LB25 `PR OP IS NU` path, now has `AffixBeforeABracketAndASeparatedNumber_StaysWithThem` and `…ASeparatorWithoutANumber_CanBreak`. In `Typesetting/TextViewportTests.cs`, eleven of the sixteen `OnLongLines_*` sweeps are thorough. Each lays a long line out in stretches and compares the answers with laying out the whole line. The five left running catch every mutant any of them catch and cover every line and branch they cover. The other eleven cost about 0.4s. In `TextViewportTests.ScrollToCaretTests`, 14 more are thorough: eight of the nine `WideLines_…` sweeps (`_Third` stays, for the empty-row break stub), three of the four `InABoxOfOneLine_…` ones (`_Centred` stays), and `SidewaysOnAWideLineUnderComposition_InsertingInTheMiddle_` and `_WhenTheLineEndsInSpaces_` and `SidewaysOnAShortLineUnderComposition_`. The sideways scroll, alignment and segmented-window mutants they caught are still caught. **Run them with `--thorough` when you change the row-walk code**, which is `VisualLineIndex.cs`, `SplicedRows.cs` and the stretch code in `TextViewport.cs`, all under `Typesetting/`. Run the built exe by absolute path, from the repo root: ``` \Junk\Tessera.UnitTests\release\Tessera.UnitTests.exe --thorough ``` `python -u Scripts/coverage.py` passes `--thorough` itself, so coverage counts them. `Modules/Glass/CLAUDE.md` has the runner's other options and the rule for marking a test `[Thorough]`. ## Test fonts The layout tests run on `MetricsFont`, a font of metrics alone, in `Tessera.UnitTests/Typesetting`. It holds only the glyphs a test gives it, and every other character measures as its invalid glyph. It has none of the stand-in glyphs a real font resolves, such as zero-width default ignorables or space separators sized from the em. So a test that needs a character to have some width gives the font that glyph. `LayoutFonts` holds the fonts several fixtures share, and `Glass.UnitTests` links both files in.