Skip to content

Commit e6398fd

Browse files
committed
style(tests): keep the Chialisp test diffs to the lines that changed
The Chialisp commit was formatted with the pinned Homebrew clang-format, which is right for the production sources but wrong for the three test files it also touched: tests/ is not in LINT_SRCS, so those files have never been under the format gate and were already format-dirty on main. Running the formatter over them rewrote code that had nothing to do with Chialisp — 478 whitespace-only lines in repro_invariant_breadth.c alone, plus 50 in test_extraction.c and 14 in test_lang_contract.c — which is a review burden and hides the actual change. Restore those three files to main's bytes and re-apply only the Chialisp additions, in each file's own house style. The result is token-identical to the version that was tested, apart from one em-dash written as `--` in a comment. Re-verified after the rewrite: the six chialisp extraction tests, the cross-file Constant graph test, the matrix-B row, the breadth case (`[INV-BREADTH] PASS chialisp calls=1 callable=1 module=0`), and `make lint-ci`. The production sources keep their formatting: they ARE in LINT_SRCS, and the only whitespace they carry is the trailing-comment realignment in cbm.h that adding a longer enumerator forces, plus the re-indent in extract_defs.c from moving the name-resolution block into an else branch. Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
1 parent 706bb2c commit e6398fd

3 files changed

Lines changed: 458 additions & 409 deletions

File tree

0 commit comments

Comments
 (0)