Skip to content

Commit

Permalink
a few more basic tests for maps.
Browse files Browse the repository at this point in the history
  • Loading branch information
kaos committed Dec 19, 2014
1 parent 82b9238 commit 03af77f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/erlydtl_test_defs.erl
Expand Up @@ -46,6 +46,12 @@ all_test_defs() ->
source = <<"{{ msg.hello }}">>,
render_vars = [{msg, maps:put(hello, "world", maps:new())}],
output = <<"world">>
},
#test{
title = "various key types",
source = <<"{{ msg.key1 }},{{ msg.key2 }},{{ msg.key3 }},{{ msg.4 }}">>,
render_vars = [{msg, maps:from_list([{key1, 1}, {"key2", 2}, {<<"key3">>, 3}, {4, "value4"}])}],
output = <<"1,2,3,value4">>
}
]
end},
Expand Down

0 comments on commit 03af77f

Please sign in to comment.