Patch in content of previous block if it exists
Signed-off-by: Marcel Müller <neikos@neikos.email>
This commit is contained in:
parent
ae379df9db
commit
6a233e978f
6 changed files with 34 additions and 29 deletions
|
|
@ -22,15 +22,15 @@ input_file: tests/cases/condition.nomo
|
|||
AppendContent {
|
||||
content: "Hello World!" (18..30),
|
||||
},
|
||||
AppendContent {
|
||||
content: "\n" (30..31),
|
||||
},
|
||||
Jump {
|
||||
jump: 3,
|
||||
jump: 2,
|
||||
},
|
||||
AppendContent {
|
||||
content: "\n " (13..18),
|
||||
},
|
||||
AppendContent {
|
||||
content: "\n" (30..31),
|
||||
},
|
||||
AppendContent {
|
||||
content: "\n\n" (40..42),
|
||||
},
|
||||
|
|
|
|||
|
|
@ -22,15 +22,15 @@ input_file: tests/cases/if_else_if.nomo
|
|||
AppendContent {
|
||||
content: "Not Hello World! :C" (18..37),
|
||||
},
|
||||
AppendContent {
|
||||
content: "\n" (37..38),
|
||||
},
|
||||
Jump {
|
||||
jump: 9,
|
||||
jump: 8,
|
||||
},
|
||||
AppendContent {
|
||||
content: "\n " (13..18),
|
||||
},
|
||||
AppendContent {
|
||||
content: "\n" (37..38),
|
||||
},
|
||||
LoadFromContextToSlot {
|
||||
name: "another_test" (49..61),
|
||||
slot: VariableSlot {
|
||||
|
|
@ -49,13 +49,13 @@ input_file: tests/cases/if_else_if.nomo
|
|||
AppendContent {
|
||||
content: "Hello World!" (69..81),
|
||||
},
|
||||
AppendContent {
|
||||
content: "\n" (81..82),
|
||||
},
|
||||
Jump {
|
||||
jump: 2,
|
||||
jump: 1,
|
||||
},
|
||||
AppendContent {
|
||||
content: "\n " (64..69),
|
||||
},
|
||||
AppendContent {
|
||||
content: "\n" (81..82),
|
||||
},
|
||||
]
|
||||
|
|
|
|||
|
|
@ -3,4 +3,4 @@ source: tests/file_tests.rs
|
|||
expression: output
|
||||
input_file: tests/cases/condition.nomo
|
||||
---
|
||||
"\n Hello World!\n\nmore"
|
||||
"\n Hello World!\n\n\nmore"
|
||||
|
|
|
|||
|
|
@ -3,4 +3,4 @@ source: tests/file_tests.rs
|
|||
expression: output
|
||||
input_file: tests/cases/if_else_if.nomo
|
||||
---
|
||||
"\n\n Hello World!\n"
|
||||
"\n \n Hello World!\n\n "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue