docs: Guides für Farben, Variablen, Theme-Optionen, Schriften, Snapshots und Schleifen-Inhalte
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
cfc46e1c5e
commit
fc35cbe9dd
@@ -130,6 +130,17 @@ final class ToolNamingTest extends TestCase
|
||||
self::assertSame($files, $listedTopics);
|
||||
}
|
||||
|
||||
/** Every indirect tool is named in the overview (the only place a client learns which `lit/` tools exist). */
|
||||
public function testOverviewNamesEveryIndirectTool(): void
|
||||
{
|
||||
$overview = (string) file_get_contents(dirname(__DIR__, 3) . '/docs/guides/overview.md');
|
||||
preg_match_all('#`lit/([a-z]+(?:-[a-z]+)*)`#', $overview, $named);
|
||||
|
||||
$indirect = array_keys(array_filter(self::abilities(), static fn (bool $direct): bool => ! $direct));
|
||||
self::assertNotEmpty($indirect);
|
||||
self::assertSame([], array_values(array_diff($indirect, $named[1])), 'indirect tools missing in overview.md');
|
||||
}
|
||||
|
||||
public function testOverviewListsExactlyTheDirectTools(): void
|
||||
{
|
||||
$overview = (string) file_get_contents(dirname(__DIR__, 3) . '/docs/guides/overview.md');
|
||||
|
||||
Reference in New Issue
Block a user