mirror of
https://github.com/kemko/liquid.git
synced 2026-01-01 15:55:40 +03: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