Add tests for for loop
Signed-off-by: Marcel Müller <neikos@neikos.email>
This commit is contained in:
parent
42e0056374
commit
dc8281036c
7 changed files with 178 additions and 2 deletions
|
|
@ -2,10 +2,12 @@
|
|||
source: tests/file_tests.rs
|
||||
expression: output
|
||||
info:
|
||||
input: "{{ for value in values -}}\n {{-= value }}\n{{- end }}\n{{ for value in no_values -}}\n {{-= value }}\n{{ else -}}\nNo Values >:C\n{{- end }}"
|
||||
context:
|
||||
no_values: []
|
||||
values:
|
||||
- one
|
||||
- two
|
||||
input_file: tests/cases/simple_for.nomo
|
||||
---
|
||||
"one\ntwo\n"
|
||||
"one\ntwo\n\nNo Values >:C"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue