duster/js/test_cases/idx_and_len
Tom Alexander e0fe7475c5
Add a single element array test for idx_and_len.
This test is mostly because I am currently turning truthy values into single element arrays during render, so I need to make sure idx and len and not being set for non-array iteration.
2020-05-24 15:29:14 -04:00
..
README.md Add a test for $idx and $len. 2020-05-24 15:22:10 -04:00
array.json Add a test for $idx and $len. 2020-05-24 15:22:10 -04:00
false.json Add a test for $idx and $len. 2020-05-24 15:22:10 -04:00
main.dust Add a test for $idx and $len. 2020-05-24 15:22:10 -04:00
number.json Add a test for $idx and $len. 2020-05-24 15:22:10 -04:00
single_element_array.json Add a single element array test for idx_and_len. 2020-05-24 15:29:14 -04:00
string.json Add a test for $idx and $len. 2020-05-24 15:22:10 -04:00

README.md

$idx and $len seem to only be valid inside sections iterating over arrays, but nothing else.