Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

Tests for range op
  • Loading branch information...
commit 4bfe5575fbc76e783d26012c3eb1865b3cf8fc97 2 parents 8942617 + d0f7da5
@ingydotnet authored
Showing with 13 additions and 1 deletion.
  1. +13 −1 tests/t/loop.t.js
View
14 tests/t/loop.t.js
@@ -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
+
*/
Please sign in to comment.
Something went wrong with that request. Please try again.