summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mustache.erl5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mustache.erl b/src/mustache.erl
index ff7a21b..ac501a0 100644
--- a/src/mustache.erl
+++ b/src/mustache.erl
@@ -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.