mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-19 02:40:41 -07:00
Liquid has UTF8 support.
This commit is contained in:
@@ -12,7 +12,13 @@ class AssignTest < Test::Unit::TestCase
|
||||
'{% assign foo = values %}.{{ foo[1] }}.',
|
||||
'values' => %w{foo bar baz})
|
||||
end
|
||||
|
||||
|
||||
def test_assigned_utf8_variable
|
||||
assert_template_result('.bar.',
|
||||
"{% assign foo\u6000 = values %}.{{ foo\u6000[1] }}.",
|
||||
'values' => %w{foo bar baz})
|
||||
end
|
||||
|
||||
def test_assign_with_filter
|
||||
assert_template_result('.bar.',
|
||||
'{% assign foo = values | split: "," %}.{{ foo[1] }}.',
|
||||
|
||||
Reference in New Issue
Block a user