nimbus-eth2/tests/consensus_spec
Etan Kissling 23fa8d0c70
handle `scanf` exceptions in `test_fixture_ssz_generic_types` (#5993)
`scanf` apparently has both a `bool` return as well as raising random
exceptions depending on what functions get called by the `macro`.
To make this explicit, catch the `ValueError` from the generated
`parseInt` call, to separate `scanf` behaviour from the actual SSZ
test logic. In the end, it mostly doesn't matter as there are some
`doAssert wasMatched` on the next line (not everywhere though).
But it still makes the `scanf` internals explicit, so is clearer.
2024-02-29 10:47:00 +00:00
..
altair explicitly mention `{.raises.}` in `tests` folder (#5990) 2024-02-29 10:28:32 +00:00
bellatrix explicitly mention `{.raises.}` in `tests` folder (#5990) 2024-02-29 10:28:32 +00:00
capella explicitly mention `{.raises.}` in `tests` folder (#5990) 2024-02-29 10:28:32 +00:00
deneb explicitly mention `{.raises.}` in `tests` folder (#5990) 2024-02-29 10:28:32 +00:00
phase0 explicitly mention `{.raises.}` in `tests` folder (#5990) 2024-02-29 10:28:32 +00:00
README.md test fixture cleanups (#2976) 2021-10-12 13:36:52 +02:00
all_tests.nim some EF KZG test harnesses (#5733) 2024-01-12 22:29:43 +00:00
consensus_spec_tests_preset.nim verify `genesis_time` more strictly (fixes #1667) (#5694) 2024-01-06 15:26:56 +01:00
fixtures_utils.nim Revert "initial Electra support skeleton" (#5955) 2024-02-25 19:42:44 +00:00
os_ops.nim avoid forgetting to quit in `os_ops` tools if log fails (#5986) 2024-02-28 16:04:34 +00:00
test_fixture_fork.nim verify `genesis_time` more strictly (fixes #1667) (#5694) 2024-01-06 15:26:56 +01:00
test_fixture_fork_choice.nim explicitly mention `{.raises.}` in `tests` folder (#5990) 2024-02-29 10:28:32 +00:00
test_fixture_kzg.nim add `{.push raises: [].}` to more files (#5943) 2024-02-22 11:03:09 +01:00
test_fixture_light_client_single_merkle_proof.nim explicitly mention `{.raises.}` in `tests` folder (#5990) 2024-02-29 10:28:32 +00:00
test_fixture_light_client_sync.nim explicitly mention `{.raises.}` in `tests` folder (#5990) 2024-02-29 10:28:32 +00:00
test_fixture_light_client_update_ranking.nim explicitly mention `{.raises.}` in `tests` folder (#5990) 2024-02-29 10:28:32 +00:00
test_fixture_merkle_proof.nim explicitly mention `{.raises.}` in `tests` folder (#5990) 2024-02-29 10:28:32 +00:00
test_fixture_sanity_blocks.nim add Electra overloads for spec functions; add Electra block processing (#5963) 2024-02-26 02:38:21 +00:00
test_fixture_sanity_slots.nim explicitly mention `{.raises.}` in `tests` folder (#5990) 2024-02-29 10:28:32 +00:00
test_fixture_ssz_generic_types.nim handle `scanf` exceptions in `test_fixture_ssz_generic_types` (#5993) 2024-02-29 10:47:00 +00:00
test_fixture_transition.nim explicitly mention `{.raises.}` in `tests` folder (#5990) 2024-02-29 10:28:32 +00:00

README.md

Tests based on scenarios generated from the consensus spec.