From 47714cbf64026ecf74dee52601e9a8c5d7923cc5 Mon Sep 17 00:00:00 2001 From: Hsiao-Wei Wang Date: Thu, 25 Jul 2019 00:17:43 +0800 Subject: [PATCH] Add hash_tree_root tests against py-ssz --- test_libs/pyspec/eth2spec/fuzzing/test_decoder.py | 1 + 1 file changed, 1 insertion(+) diff --git a/test_libs/pyspec/eth2spec/fuzzing/test_decoder.py b/test_libs/pyspec/eth2spec/fuzzing/test_decoder.py index c38fd69af..3c3afa975 100644 --- a/test_libs/pyspec/eth2spec/fuzzing/test_decoder.py +++ b/test_libs/pyspec/eth2spec/fuzzing/test_decoder.py @@ -31,3 +31,4 @@ def test_decoder(): # and see if the hash-tree-root of the original matches the hash-tree-root of the decoded & translated value. assert spec_ssz_impl.hash_tree_root(original) == spec_ssz_impl.hash_tree_root(block) + assert spec_ssz_impl.hash_tree_root(original) == block_sedes.get_hash_tree_root(raw_value)