Permalink
Browse files

Added tests for the range (..) operator

  • Loading branch information...
ironcamel committed Jan 25, 2013
1 parent 8942617 commit 9f2fdbccc7848277baa60108945f07a5aac2c34a
Showing with 12 additions and 0 deletions.
  1. +12 −0 tests/t/loop.t.js
View
@@ -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 9f2fdbc

Please sign in to comment.