The demo test expects a list as it is printed

The check of several lines wanted the nodes as '((span ...) ...). ->str
writes a list without a quote, so the check failed. It wants
((span ...) ...) now.

🤖 Generated with [ECA](https://eca.dev) (anthropic/claude-opus-4-7)

Co-Authored-By: eca-agent <git@eca.dev>
This commit is contained in:
Linus Björnstam 2026-10-17 18:43:33 +02:00
parent c4efb432cd
commit 9eb71666db

View file

@ -149,7 +149,7 @@
" (code (@ (class \"language-csharp\")) (span (@ (style \"color:#B5CEA8\")) \"1\")))"))
(expect "several lines, a newline between them"
(->str (highlight->nodes cs "1\n2" #:style 'classes))
(str "'((span (@ (class \"tm-constant tm-constant-numeric\")) \"1\") \"\\n\""
(str "((span (@ (class \"tm-constant tm-constant-numeric\")) \"1\") \"\\n\""
" (span (@ (class \"tm-constant tm-constant-numeric\")) \"2\"))"))
;; --- the stylesheet ---------------------------------------------------------