Add test for multiple interpolations
Signed-off-by: Marcel Müller <neikos@neikos.email>
This commit is contained in:
parent
67b9c418ac
commit
e158450d18
5 changed files with 176 additions and 0 deletions
38
tests/cases/3-instructions@multiple.snap
Normal file
38
tests/cases/3-instructions@multiple.snap
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
---
|
||||
source: tests/file_tests.rs
|
||||
expression: emit
|
||||
input_file: tests/cases/multiple.temple
|
||||
---
|
||||
[
|
||||
AppendContent {
|
||||
content: "Hi there! My name is",
|
||||
},
|
||||
AppendContent {
|
||||
content: " ",
|
||||
},
|
||||
LoadFromContextToSlot {
|
||||
name: "name",
|
||||
slot: VariableSlot {
|
||||
index: 0,
|
||||
},
|
||||
},
|
||||
EmitFromSlot {
|
||||
slot: VariableSlot {
|
||||
index: 0,
|
||||
},
|
||||
},
|
||||
AppendContent {
|
||||
content: " ",
|
||||
},
|
||||
LoadFromContextToSlot {
|
||||
name: "lastname",
|
||||
slot: VariableSlot {
|
||||
index: 1,
|
||||
},
|
||||
},
|
||||
EmitFromSlot {
|
||||
slot: VariableSlot {
|
||||
index: 1,
|
||||
},
|
||||
},
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue