Handle recursive array

This commit is contained in:
Ian Ker-Seymer
2024-12-10 19:17:24 -05:00
parent 5e459b884a
commit 820b238288
2 changed files with 16 additions and 6 deletions
+4
View File
@@ -130,6 +130,10 @@ class VariableTest < Minitest::Test
assert_template_result('bar', '{{ foo }}', { 'foo' => :bar })
end
def test_nested_array
assert_template_result('', '{{ foo }}', { 'foo' => [[nil]] })
end
def test_dynamic_find_var
assert_template_result('bar', '{{ [key] }}', { 'key' => 'foo', 'foo' => 'bar' })
end