mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-15 08:50:45 -07:00
Avoid allocating arrays of key value pairs for hashes in assign_score_of
This commit is contained in:
@@ -88,8 +88,8 @@ class AssignTest < Minitest::Test
|
||||
|
||||
def test_assign_score_of_hash
|
||||
assert_equal(1, assign_score_of({}))
|
||||
assert_equal(6, assign_score_of('int' => 123))
|
||||
assert_equal(14, assign_score_of('int' => 123, 'str' => 'abcd'))
|
||||
assert_equal(5, assign_score_of('int' => 123))
|
||||
assert_equal(12, assign_score_of('int' => 123, 'str' => 'abcd'))
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
Reference in New Issue
Block a user