Browse Source

add test for 'list no the attr' and 'binary no the attr'

dcy 10 years ago
parent
commit
6fd16da17a
1 changed files with 7 additions and 1 deletions
  1. 7 1
      test/erlydtl_test_defs.erl

+ 7 - 1
test/erlydtl_test_defs.erl

@@ -28,7 +28,13 @@ all_test_defs() ->
         [{var1, "foo"}], <<"foo">>},
        {"Variable name is a tag name",
         <<"{{ comment }}">>,
-        [{comment, "Nice work!"}], <<"Nice work!">>}
+        [{comment, "Nice work!"}], <<"Nice work!">>},
+       {"list no the attr",
+        <<"{{ content.description }}">>,
+        [{content, "test"}], <<"">>},
+       {"binary no the attr",
+        <<"{{ content.description }}">>,
+        [{content, <<"test">>}], <<"">>}
       ]},
      {"comment",
       [{"comment block is excised",