Permalink
Browse files

Merge pull request #14 from ingydotnet/tests-for-range-op

Tests for range op
  • Loading branch information...
ingydotnet committed Jan 25, 2013
2 parents 8942617 + d0f7da5 commit 4bfe5575fbc76e783d26012c3eb1865b3cf8fc97
Showing with 13 additions and 1 deletion.
  1. +13 −1 tests/t/loop.t.js
View
@@ -5,7 +5,7 @@ var filters = {
jemplate: 'jemplate_process'
};
-t.plan(5);
+t.plan(6);
t.filters(filters);
t.run_is('jemplate', 'output');
@@ -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.