This commit is contained in:
Michael Go
2024-10-30 13:54:01 -03:00
parent be8e329cef
commit b7b6400985
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ module Liquid
attr_reader :line_number, :for_liquid_tag
TAG_END = /%\}/
TAG_OR_VARIABLE_START = /\{[\{\%}]/
TAG_OR_VARIABLE_START = /\{[\{\%]/
NEWLINE = /\n/
OPEN_CURLEY = "{".ord
+1
View File
@@ -6,6 +6,7 @@ class TokenizerTest < Minitest::Test
def test_tokenize_strings
assert_equal([' '], tokenize(' '))
assert_equal(['hello world'], tokenize('hello world'))
assert_equal(['{}'], tokenize('{}'))
end
def test_tokenize_variables