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

Create tests for Accounts/AccountsTree class #32

Closed
styppo opened this issue May 17, 2017 · 0 comments
Closed

Create tests for Accounts/AccountsTree class #32

styppo opened this issue May 17, 2017 · 0 comments
Labels
Milestone

Comments

@styppo
Copy link
Member

styppo commented May 17, 2017

There are already a couple of Accounts/AccountsTree tests to start with:
https://github.com/nimiq-network/core/tree/master/src/test/specs/generic/consensus/accounts

Accounts: e.g.

  • complex blocks
  • invalid blocks

AccountsTree: e.g.

  • deep trees
  • large trees
  • persistent storage (?)
@styppo styppo added the testing label May 17, 2017
@styppo styppo added this to the DemoNet milestone May 18, 2017
schrnz added a commit that referenced this issue Jun 12, 2017
Minor note: There is a test for self-transmissions that currently fails.
This test is deactivated (`xit`) b/c this is already enforced in the blockchain (but not in Accounts).
If we want to test this/move the check to Accounts, this test can be used.
schrnz added a commit that referenced this issue Jun 13, 2017
schrnz added a commit that referenced this issue Jun 13, 2017
All tests are executed for each provided type of accounts tree.
TODO: As soon as issue #161 is fixed, 'persistent' (and potantially also 'temporary persistent') can be added to the list so that the tests are invoked automatically in those cases, too.
schrnz added a commit that referenced this issue Jun 27, 2017
…ore (ref #32)

* Also added equals method to AccountTreeNode that compares its values since jasmine's toEqual fails if the hash is cached for one node but not for the other.
@paberr paberr closed this as completed in 9adb70b Jul 1, 2017
paberr pushed a commit that referenced this issue Jul 14, 2017
All tests are executed for each provided type of accounts tree.
TODO: As soon as issue #161 is fixed, 'persistent' (and potantially also 'temporary persistent') can be added to the list so that the tests are invoked automatically in those cases, too.
paberr pushed a commit that referenced this issue Jul 14, 2017
…lose #32

Note on the export API: As explained in issue #172, the import API is missing. Hence the corresponding export tests are incomplete.
paberr pushed a commit that referenced this issue Jul 14, 2017
…ore (ref #32)

* Also added equals method to AccountTreeNode that compares its values since jasmine's toEqual fails if the hash is cached for one node but not for the other.
paberr pushed a commit that referenced this issue Jul 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants