Download tests/test_paper.py from Kai9987kai/CROSSWIRE: direct link, hf CLI and curl.
- Browser
- Download file 608 Bytes
-
https://huggingface.co/Kai9987kai/CROSSWIRE/resolve/main/tests/test_paper.py
- Command line
-
hf download hf://Kai9987kai/CROSSWIRE/tests/test_paper.py
-
curl -L -o test_paper.py https://huggingface.co/Kai9987kai/CROSSWIRE/resolve/main/tests/test_paper.py
608 Bytes
| """Automated test validating paper LaTeX syntax and citations.""" | |
| from pathlib import Path | |
| from tools.check_latex import validate_bib, validate_tex | |
| def test_latex_paper_structure_and_citations(): | |
| root = Path(__file__).resolve().parents[1] | |
| paper_dir = root / 'paper' | |
| tex_path = paper_dir / 'crosswire_formal_synthesis.tex' | |
| bib_path = paper_dir / 'references.bib' | |
| assert tex_path.exists(), f"Missing LaTeX paper at {tex_path}" | |
| assert bib_path.exists(), f"Missing bibliography at {bib_path}" | |
| bib_keys = validate_bib(bib_path) | |
| validate_tex(tex_path, bib_keys) | |