Skip to content

Commit

Permalink
Add unit test for missing dict lookup. (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaos committed Nov 29, 2013
1 parent e976f07 commit 2dd42a2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/src/erlydtl_unittests.erl
Expand Up @@ -67,6 +67,8 @@ tests() ->
<<"I also enjoy {{ var1.game }}">>, [{var1, [{<<"game">>, "Parcheesi"}]}], <<"I also enjoy Parcheesi">>},
{"Render variable in dict",
<<"{{ var1 }}">>, dict:store(var1, "bar", dict:new()), <<"bar">>},
{"Render variable with missing attribute in dict",
<<"{{ var1.foo }}">>, [{var1, dict:store(bar, "Othello", dict:new())}], <<"">>},
{"Render variable in gb_tree",
<<"{{ var1 }}">>, gb_trees:insert(var1, "bar", gb_trees:empty()), <<"bar">>},
{"Render variable in arity-1 func",
Expand Down

0 comments on commit 2dd42a2

Please sign in to comment.