Extract Parser#number parse out of Expression.parse

This commit is contained in:
Charles-P. Clermont
2026-01-26 16:52:17 -05:00
parent 2a86852eb3
commit e1e0129983
3 changed files with 18 additions and 3 deletions
+3 -3
View File
@@ -67,7 +67,7 @@ class ExpressionTest < Minitest::Test
Liquid::Template.parse(template, expression_cache: cache).render
assert_equal(
["1", "2", "x", "y"],
["x", "y"],
cache.to_a.map { _1[0] }.sort,
)
end
@@ -91,7 +91,7 @@ class ExpressionTest < Minitest::Test
cache = parse_context.instance_variable_get(:@expression_cache)
assert_equal(
["1", "2", "x", "y"],
["x", "y"],
cache.to_a.map { _1[0] }.sort,
)
end
@@ -112,7 +112,7 @@ class ExpressionTest < Minitest::Test
Liquid::Template.parse(template, expression_cache: cache).render
assert_equal(
["1", "2", "x", "y"],
["x", "y"],
cache.to_a.map { _1[0] }.sort,
)
end