Use macro per-test-file

Signed-off-by: Marcel Müller <neikos@neikos.email>
This commit is contained in:
Marcel Müller 2026-03-12 18:15:20 +01:00
parent 605798674f
commit 06816567ff
49 changed files with 213 additions and 271 deletions

View file

@ -0,0 +1,24 @@
---
source: tests/file_tests.rs
expression: ast
info:
input: "Hello! I'm {{= name }}"
context:
name: Hemera
---
TemplateAst {
root: [
StaticContent(
[Content]"Hello! I'm" (0..10),
),
Interpolation {
prev_whitespace_content: Some(
[Whitespace]" " (10..11),
),
expression: VariableAccess(
[Ident]"name" (15..19),
),
post_whitespace_content: None,
},
],
}