From 4e5137011ba45b44d728e3b710b20947ba34d93a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mamy=20Andr=C3=A9-Ratsimbazafy?= Date: Wed, 6 Nov 2019 11:33:09 +0100 Subject: [PATCH] Fix some declared but not used --- tests/official/test_fixture_ssz_generic_types.nim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/official/test_fixture_ssz_generic_types.nim b/tests/official/test_fixture_ssz_generic_types.nim index f8e93dd7c..857d29b38 100644 --- a/tests/official/test_fixture_ssz_generic_types.nim +++ b/tests/official/test_fixture_ssz_generic_types.nim @@ -15,9 +15,8 @@ import yaml, # Beacon chain internals ../../beacon_chain/spec/[datatypes, digest], - ../../beacon_chain/ssz, + ../../beacon_chain/ssz # Test utilities - ../testutil # Parsing definitions # ------------------------------------------------------------------------ @@ -134,6 +133,7 @@ proc checkVector(sszSubType, dir: string, expectedHash: SSZHashTreeRoot) = var typeIdent: string var size: int let wasMatched = scanf(sszSubType, "vec_$+_$i", typeIdent, size) + assert wasMatched testVector(typeIdent, size) type BitContainer[N: static int] = BitList[N] or BitArray[N] @@ -147,6 +147,7 @@ proc testBitContainer(T: typedesc[BitContainer], dir: string, expectedHash: SSZH proc checkBitVector(sszSubType, dir: string, expectedHash: SSZHashTreeRoot) = var size: int let wasMatched = scanf(sszSubType, "bitvec_$i", size) + assert wasMatched case size of 1: testBitContainer(BitArray[1], dir, expectedHash) of 2: testBitContainer(BitArray[2], dir, expectedHash)