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
..
2021-10-12 13:36:52 +02:00

Tests based on scenarios generated from the consensus spec.