import unittest
from pathlib import Path

ROOT = Path(__file__).resolve().parents[1]
README = ROOT / "README.md"


class ReadmeLanguageListsTests(unittest.TestCase):
    def test_rulesets_list_includes_typescript(self):
        text = README.read_text(encoding="utf-8")
        self.assertIn("- `rulesets/typescript/index.md`：TypeScript 核心约定", text)


if __name__ == "__main__":
    unittest.main()
