Просмотр исходного кода

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

dcy 10 лет назад
Родитель
Сommit
6fd16da17a
1 измененных файлов с 7 добавлено и 1 удалено
  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",