Browse Source

Add failing test for string quote fix in #138

Andreas Stenius 11 years ago
parent
commit
88bcc77b1b
1 changed files with 3 additions and 1 deletions
  1. 3 1
      test/erlydtl_test_defs.erl

+ 3 - 1
test/erlydtl_test_defs.erl

@@ -50,7 +50,9 @@ all_test_defs() ->
       [{"Render literal",
       [{"Render literal",
         <<"{{ \"foo\" }} is my name">>, [], <<"foo is my name">>},
         <<"{{ \"foo\" }} is my name">>, [], <<"foo is my name">>},
        {"Newlines are escaped",
        {"Newlines are escaped",
-        <<"{{ \"foo\\n\" }}">>, [], <<"foo\n">>}
+        <<"{{ \"foo\\n\" }}">>, [], <<"foo\n">>},
+       {"strip quotes",
+        <<"{{ \"foo\"|add:\"\\\"\" }}">>, [], <<"foo\"">>}
       ]},
       ]},
      {"cycle",
      {"cycle",
       [{"Cycling through quoted strings",
       [{"Cycling through quoted strings",