Skip to content

State tests#112

Merged
mkalinin merged 31 commits intodevelopfrom
feature/state-tests
Apr 9, 2019
Merged

State tests#112
mkalinin merged 31 commits intodevelopfrom
feature/state-tests

Conversation

@zilm13
Copy link
Copy Markdown
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
Copy Markdown
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

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
Copy Markdown
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
Copy Markdown
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.

2 participants