Use macro per-test-file
Signed-off-by: Marcel Müller <neikos@neikos.email>
This commit is contained in:
parent
605798674f
commit
06816567ff
49 changed files with 213 additions and 271 deletions
69
tests/cases/identifiers.2-ast.snap
Normal file
69
tests/cases/identifiers.2-ast.snap
Normal file
|
|
@ -0,0 +1,69 @@
|
|||
---
|
||||
source: tests/file_tests.rs
|
||||
expression: ast
|
||||
info:
|
||||
input: "{{= _name }}\n{{= a_name }}\n{{= name }}\n{{= _name1 }}\n{{= _namE }}\n{{= name1 }}"
|
||||
context:
|
||||
name1: Foo
|
||||
_name: Foo
|
||||
_namE: Foo
|
||||
a_name: Foo
|
||||
name: Foo
|
||||
_name1: Foo
|
||||
---
|
||||
TemplateAst {
|
||||
root: [
|
||||
Interpolation {
|
||||
prev_whitespace_content: None,
|
||||
expression: VariableAccess(
|
||||
[Ident]"_name" (4..9),
|
||||
),
|
||||
post_whitespace_content: Some(
|
||||
[Whitespace]"\n" (12..13),
|
||||
),
|
||||
},
|
||||
Interpolation {
|
||||
prev_whitespace_content: None,
|
||||
expression: VariableAccess(
|
||||
[Ident]"a_name" (17..23),
|
||||
),
|
||||
post_whitespace_content: Some(
|
||||
[Whitespace]"\n" (26..27),
|
||||
),
|
||||
},
|
||||
Interpolation {
|
||||
prev_whitespace_content: None,
|
||||
expression: VariableAccess(
|
||||
[Ident]"name" (31..35),
|
||||
),
|
||||
post_whitespace_content: Some(
|
||||
[Whitespace]"\n" (38..39),
|
||||
),
|
||||
},
|
||||
Interpolation {
|
||||
prev_whitespace_content: None,
|
||||
expression: VariableAccess(
|
||||
[Ident]"_name1" (43..49),
|
||||
),
|
||||
post_whitespace_content: Some(
|
||||
[Whitespace]"\n" (52..53),
|
||||
),
|
||||
},
|
||||
Interpolation {
|
||||
prev_whitespace_content: None,
|
||||
expression: VariableAccess(
|
||||
[Ident]"_namE" (57..62),
|
||||
),
|
||||
post_whitespace_content: Some(
|
||||
[Whitespace]"\n" (65..66),
|
||||
),
|
||||
},
|
||||
Interpolation {
|
||||
prev_whitespace_content: None,
|
||||
expression: VariableAccess(
|
||||
[Ident]"name1" (70..75),
|
||||
),
|
||||
post_whitespace_content: None,
|
||||
},
|
||||
],
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue