mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-19 19:00:39 -07:00
test: Equality comparison of two hashes (#850)
This commit is contained in:
committed by
GitHub
parent
2bb3552033
commit
0c58328a40
@@ -68,6 +68,7 @@ class ConditionUnitTest < Minitest::Test
|
|||||||
assert_equal nil, Condition.new({}, '>', 2).evaluate
|
assert_equal nil, Condition.new({}, '>', 2).evaluate
|
||||||
assert_equal nil, Condition.new(2, '>', {}).evaluate
|
assert_equal nil, Condition.new(2, '>', {}).evaluate
|
||||||
assert_equal false, Condition.new({}, '==', 2).evaluate
|
assert_equal false, Condition.new({}, '==', 2).evaluate
|
||||||
|
assert_equal true, Condition.new({ 'a' => 1 }, '==', { 'a' => 1 }).evaluate
|
||||||
assert_equal true, Condition.new({ 'a' => 2 }, 'contains', 'a').evaluate
|
assert_equal true, Condition.new({ 'a' => 2 }, 'contains', 'a').evaluate
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user