aboutsummaryrefslogtreecommitdiff
path: root/test/unit
AgeCommit message (Collapse)Author
2024-10-05Fix commentRadon Rosborough
2024-05-17[#302] User option: apheleia-mode-predicates (#303)Radon Rosborough
For https://github.com/radian-software/apheleia/issues/302. Not tested yet. Going to add unit tests before merging.
2024-03-30Prevent null issues when strings are unequal (#290)Ellis KenyƑ
In the case where s2 is larger than s1, this errors because the index is out of range. A good testcase is the below ```lisp (apheleia--align-point " <div class=\"left-[40rem] fixed inset-y-0 right-0 z-0 hidden lg:block xl:left-[50rem]\">\n <svg\n" "<div class=\"left-[40rem] fixed inset-y-0 right-0 z-0 hidden lg:block xl:left-[50rem]\">\n <svg" 6) ``` If I've implemented the indexing wrong, do let me know but this seems to work just fine now for `mix` (the formatter that triggered this) --------- Co-authored-by: Radon Rosborough <radon@intuitiveexplanations.com>