Skip to content

Commit

Permalink
Add test confirming issue #185.
Browse files Browse the repository at this point in the history
  • Loading branch information
kaos committed Jul 26, 2014
1 parent 890f2b3 commit 64f9886
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/erlydtl_test_defs.erl
Expand Up @@ -687,6 +687,12 @@ all_test_defs() ->
{"|pluralize:\"y,es\" (list)",
<<"{{ num|pluralize:\"y,es\" }}">>, [{num, 2}],
<<"es">>},
{"|length|pluralize",
<<"{{ list|length|pluralize:\"plural\" }}">>, [{list, [foo, bar]}],
<<"plural">>},
{"|length|pluralize",
<<"{{ list|length|pluralize:\"plural\" }}">>, [{list, [foo]}],
<<"">>},
{"|random",
<<"{{ var1|random }}">>, [{var1, ["foo", "foo", "foo"]}],
<<"foo">>},
Expand Down

0 comments on commit 64f9886

Please sign in to comment.