Skip to content

Commit

Permalink
Merge pull request #14 from ingydotnet/tests-for-range-op
Browse files Browse the repository at this point in the history
Tests for range op
  • Loading branch information
ingydotnet committed Jan 25, 2013
2 parents 8942617 + d0f7da5 commit 4bfe557
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion tests/t/loop.t.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var filters = {
jemplate: 'jemplate_process'
};

t.plan(5);
t.plan(6);
t.filters(filters);
t.run_is('jemplate', 'output');

Expand Down Expand Up @@ -80,4 +80,16 @@ b:a:c
c:b:d
d:c:
=== Test range operator
--- jemplate
loop3.html
[%- FOR i IN [0 .. 3] -%]
[%- i -%]:[%-loop.count%]
[% END -%]
--- output
0:1
1:2
2:3
3:4
*/

0 comments on commit 4bfe557

Please sign in to comment.