File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
ethereum/spec/src/test/java/tech/pegasys/teku/spec/logic/versions/gloas/helpers Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -27,10 +27,14 @@ public class MiscHelpersGloasTest {
2727 private final MiscHelpersGloas miscHelpers =
2828 MiscHelpersGloas .required (spec .getGenesisSpec ().miscHelpers ());
2929
30+ private final PredicatesGloas predicates =
31+ PredicatesGloas .required (spec .getGenesisSpec ().predicates ());
32+
3033 @ Test
31- public void roundTrip_convertBetweenBuilderIndexAndValidatorIndex () {
34+ public void roundTrip_convertBuilderIndexToValidatorIndex () {
3235 final UInt64 builderIndex = UInt64 .valueOf (42 );
3336 final UInt64 validatorIndex = miscHelpers .convertBuilderIndexToValidatorIndex (builderIndex );
37+ assertThat (predicates .isBuilderIndex (validatorIndex )).isTrue ();
3438 assertThat (miscHelpers .convertValidatorIndexToBuilderIndex (validatorIndex ))
3539 .isEqualTo (builderIndex );
3640 }
You can’t perform that action at this time.
0 commit comments