Liquid has UTF8 support.

This commit is contained in:
Adam Tanner
2012-12-26 18:14:36 -08:00
parent 50bd34fd78
commit 0b36540b78
13 changed files with 50 additions and 9 deletions
+5
View File
@@ -98,6 +98,11 @@ class ContextTest < Test::Unit::TestCase
assert_equal nil, @context['nil']
end
def test_utf8_variables
@context["chinese\u6000variable"] = 'chinese'
assert_equal 'chinese', @context["chinese\u6000variable"]
end
def test_variables_not_existing
assert_equal nil, @context['does_not_exist']
end