Skip to content

Commit

Permalink
extend liquid tests for new features
Browse files Browse the repository at this point in the history
  • Loading branch information
Grahame Grieve committed Dec 3, 2024
1 parent ce3ff06 commit ccaf1de
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions r5/liquid/liquid-tests.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@
},{
"name" : "for",
"focus" : "Patient/example",
"template" : "{%for name in Patient.name%}{{name.family}}{%endfor%}",
"output" : "ChalmersWindsor"
"template" : "{%for name in Patient.name%}{{forLoop.index0}}.{{name.family}}{%endfor%} ",
"output" : "0.Chalmers1.2.Windsor "
},{
"name" : "forelse",
"focus" : "Patient/example",
Expand Down Expand Up @@ -105,5 +105,10 @@
"focus" : "Patient/example",
"template" : "{% assign my_variable = false %}{% if my_variable != true %}This statement is valid.{% endif %}",
"output" : "This statement is valid."
},{
"name" : "capture",
"focus" : "Patient/example",
"template" : "{% capture my_variable %}false{%endcapture%}{% if my_variable != true %}This statement is valid.{% endif %}",
"output" : "This statement is valid."
}]
}

0 comments on commit ccaf1de

Please sign in to comment.