mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-29 07:05:12 -07:00
fix typo
This commit is contained in:
@@ -7,7 +7,7 @@ module Liquid
|
|||||||
attr_reader :line_number, :for_liquid_tag
|
attr_reader :line_number, :for_liquid_tag
|
||||||
|
|
||||||
TAG_END = /%\}/
|
TAG_END = /%\}/
|
||||||
TAG_OR_VARIABLE_START = /\{[\{\%}]/
|
TAG_OR_VARIABLE_START = /\{[\{\%]/
|
||||||
NEWLINE = /\n/
|
NEWLINE = /\n/
|
||||||
|
|
||||||
OPEN_CURLEY = "{".ord
|
OPEN_CURLEY = "{".ord
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ class TokenizerTest < Minitest::Test
|
|||||||
def test_tokenize_strings
|
def test_tokenize_strings
|
||||||
assert_equal([' '], tokenize(' '))
|
assert_equal([' '], tokenize(' '))
|
||||||
assert_equal(['hello world'], tokenize('hello world'))
|
assert_equal(['hello world'], tokenize('hello world'))
|
||||||
|
assert_equal(['{}'], tokenize('{}'))
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_tokenize_variables
|
def test_tokenize_variables
|
||||||
|
|||||||
Reference in New Issue
Block a user