summaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2012-10-05 11:07:50 -0500
committerJesse Luehrs <doy@tozt.net>2012-10-05 11:07:50 -0500
commit2c554363ca25ff42fa6d9df7cd7093dd3d4b7f46 (patch)
treef959d6da47103afda00b48ef3e272354289c8d2b /t
parenta51757076642700537944f970c9274ceb65cf77d (diff)
downloadtext-handlebars-2c554363ca25ff42fa6d9df7cd7093dd3d4b7f46.tar.gz
text-handlebars-2c554363ca25ff42fa6d9df7cd7093dd3d4b7f46.zip
allow - in identifiers
Diffstat (limited to 't')
-rw-r--r--t/expressions.t20
1 files changed, 20 insertions, 0 deletions
diff --git a/t/expressions.t b/t/expressions.t
index 0026dbe..8f48a5d 100644
--- a/t/expressions.t
+++ b/t/expressions.t
@@ -123,4 +123,24 @@ render_ok(
"nested current context"
);
+render_ok(
+ '{{foo-bar}}',
+ {
+ 'foo-bar' => "FOOBAR",
+ },
+ 'FOOBAR',
+ "- is a valid character"
+);
+
+render_ok(
+ '{{foo.foo-bar}}',
+ {
+ foo => {
+ 'foo-bar' => "FOOBAR",
+ },
+ },
+ 'FOOBAR',
+ "- is a valid character"
+);
+
done_testing;