Browse Source

touch up tests for pr #192

Andreas Stenius 10 years ago
parent
commit
7352409af6
1 changed files with 8 additions and 8 deletions
  1. 8 8
      test/erlydtl_test_defs.erl

+ 8 - 8
test/erlydtl_test_defs.erl

@@ -28,13 +28,7 @@ all_test_defs() ->
         [{var1, "foo"}], <<"foo">>},
         [{var1, "foo"}], <<"foo">>},
        {"Variable name is a tag name",
        {"Variable name is a tag name",
         <<"{{ comment }}">>,
         <<"{{ comment }}">>,
-        [{comment, "Nice work!"}], <<"Nice work!">>},
-       {"list no the attr",
-        <<"{{ content.description }}">>,
-        [{content, "test"}], <<"">>},
-       {"binary no the attr",
-        <<"{{ content.description }}">>,
-        [{content, <<"test">>}], <<"">>}
+        [{comment, "Nice work!"}], <<"Nice work!">>}
       ]},
       ]},
      {"comment",
      {"comment",
       [{"comment block is excised",
       [{"comment block is excised",
@@ -149,7 +143,13 @@ all_test_defs() ->
        {"Index tuple using a \"reserved\" keyword",
        {"Index tuple using a \"reserved\" keyword",
         <<"{{ list.count }}">>,
         <<"{{ list.count }}">>,
         [{list, [{count, 123}]}],
         [{list, [{count, 123}]}],
-        <<"123">>}
+        <<"123">>},
+       {"Index list value",
+        <<"{{ content.description }}">>,
+        [{content, "test"}], <<"">>},
+       {"Index binary value",
+        <<"{{ content.description }}">>,
+        [{content, <<"test">>}], <<"">>}
       ]},
       ]},
      {"now",
      {"now",
       [{"now functional",
       [{"now functional",