Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

State tests #112

Merged
merged 31 commits into from
Apr 9, 2019
Merged

State tests #112

merged 31 commits into from
Apr 9, 2019

Conversation

zilm13
Copy link
Member

@zilm13 zilm13 commented Mar 29, 2019

Implements state test suite and enables it for unit tests.

TODO: revisit tests when signing_root and hash_tree_root fixed, #116.

@mkalinin mkalinin changed the base branch from spec/v0.5.1 to develop April 3, 2019 11:23
stateTestsPath,
StateTest.class,
testCase -> new StateRunner(testCase).run(),
Exclusion.of("test_skipped_slots", "test_empty_epoch_transition", "test_historical_batch"));
Copy link
Member Author

@zilm13 zilm13 Apr 8, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd put it one exclusion per string with comment on each string why this case is currently excluded

@@ -30,7 +30,8 @@ default void process_block_header(MutableBeaconState state, BeaconBlock block) {
// Verify that the slots match
assertTrue(block.getSlot().equals(state.getSlot()));
// Verify that the parent matches
assertTrue(block.getPreviousBlockRoot().equals(signed_root(state.getLatestBlockHeader())));
// FIXME: signed_root should match
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's not forget this thing

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd better create an issue and point this out in the issue.

@mkalinin mkalinin marked this pull request as ready for review April 9, 2019 09:28
@mkalinin mkalinin changed the title [WIP] State tests State tests Apr 9, 2019
@mkalinin mkalinin merged commit 3f5efcf into develop Apr 9, 2019
@zilm13 zilm13 deleted the feature/state-tests branch April 23, 2019 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants