Skip to content

Commit

Permalink
Add small integer test
Browse files Browse the repository at this point in the history
  • Loading branch information
pusewicz committed Dec 13, 2011
1 parent 702f329 commit fbcecc2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/mustache.erl
Original file line number Diff line number Diff line change
Expand Up @@ -226,4 +226,9 @@ simple_test() ->
Result = render("Hello {{name}}!", Ctx),
?assertEqual("Hello world!", Result).

integer_values_too_test() ->
Ctx = dict:from_list([{name, "Chris"}, {value, 10000}]),
Result = render("Hello {{name}}~nYou have just won ${{value}}!", Ctx),
?assertEqual("Hello Chris~nYou have just won $10000!", Result).

-endif.

0 comments on commit fbcecc2

Please sign in to comment.