crude rework of the hashing to work in opal

This commit is contained in:
Torsten Ruger
2016-12-22 21:16:36 +02:00
parent 2adec3226c
commit 3b888b203d
2 changed files with 17 additions and 12 deletions

View File

@ -31,13 +31,13 @@ class TypeHash < MiniTest::Test
end
def test_hashcode_with_hash
assert_equal @first.hash , Parfait::Type.hash_code_for( @first.to_hash)
assert_equal @first.hash , Parfait::Type.hash_code_for_hash( @first.to_hash)
end
def test_second_hash_different
hash2 = @first.to_hash
hash2[:random] = :Type
assert @first.hash != Parfait::Type.hash_code_for( hash2 )
assert @first.hash != Parfait::Type.hash_code_for_hash( hash2 )
end
def test_add_is_different