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
30
tests/cases/interpolation.3-instructions.snap
Normal file
30
tests/cases/interpolation.3-instructions.snap
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
---
|
||||
source: tests/file_tests.rs
|
||||
expression: emit
|
||||
info:
|
||||
input: "Hello! I'm {{= name }}"
|
||||
context:
|
||||
name: Hemera
|
||||
---
|
||||
VMInstructions {
|
||||
labels: {},
|
||||
instructions: [
|
||||
AppendContent {
|
||||
content: "Hello! I'm" (0..10),
|
||||
},
|
||||
AppendContent {
|
||||
content: " " (10..11),
|
||||
},
|
||||
LoadFromContextToSlot {
|
||||
name: "name" (15..19),
|
||||
slot: VariableSlot {
|
||||
index: 0,
|
||||
},
|
||||
},
|
||||
EmitFromSlot {
|
||||
slot: VariableSlot {
|
||||
index: 0,
|
||||
},
|
||||
},
|
||||
],
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue