Skip to content

Turn any technical book PDF into a Claude Code skill — ready to study, reference, and use while you work.

test(evals): stabilize paper-flat file ordering (#200)

Wu Shuwen4f1ca4d05f55
diff --git a/tests/evals/test_paper_flat.py b/tests/evals/test_paper_flat.py
index 7c6340a..0481ebe 100644
--- a/tests/evals/test_paper_flat.py
+++ b/tests/evals/test_paper_flat.py
@@ -72,6 +72,9 @@ def test_no_heading_uses_one_full_source_chunk(tmp_path):
def test_pack_has_no_child_skill_hierarchy(tmp_path):
build(tmp_path)
- files = sorted(path.relative_to(tmp_path / "pack") for path in (tmp_path / "pack").rglob("*") if path.is_file())
+ files = sorted(
+ (path.relative_to(tmp_path / "pack") for path in (tmp_path / "pack").rglob("*") if path.is_file()),
+ key=lambda path: path.as_posix(),
+ )
assert files == [Path("SKILL.md"), Path("chunks/chunk-01.md"), Path("chunks/chunk-02.md")]
assert all(path.name == "SKILL.md" for path in files if path.name == "SKILL.md")