mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-01-12 11:44:41 +00:00
Merge pull request #2791 from ralexstokes/clean-up-test-gen
remove unnecessary conditional in ssz generic test gen code
This commit is contained in:
commit
fab4cb09b7
@ -104,7 +104,6 @@ def invalid_cases():
|
|||||||
RandomizationMode.mode_nil_count,
|
RandomizationMode.mode_nil_count,
|
||||||
RandomizationMode.mode_one_count,
|
RandomizationMode.mode_one_count,
|
||||||
RandomizationMode.mode_max_count]:
|
RandomizationMode.mode_max_count]:
|
||||||
if len(offsets) != 0:
|
|
||||||
for offset_index in offsets:
|
for offset_index in offsets:
|
||||||
yield f'{name}_{mode.to_name()}_offset_{offset_index}_plus_one', \
|
yield f'{name}_{mode.to_name()}_offset_{offset_index}_plus_one', \
|
||||||
invalid_test_case(lambda: mod_offset(
|
invalid_test_case(lambda: mod_offset(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user