test: Equality comparison of two hashes (#850)

This commit is contained in:
Dylan Thacker-Smith
2017-01-16 15:56:38 -05:00
committed by GitHub
parent 2bb3552033
commit 0c58328a40

View File

@@ -68,6 +68,7 @@ class ConditionUnitTest < Minitest::Test
assert_equal nil, Condition.new({}, '>', 2).evaluate
assert_equal nil, 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
end