hexresearch / hexresearch/hschain

Add test suite for tests H.Crypto.Containers & ValidatorSet

Open
#134 0 comments 0 reactions 0 assignees View on GitHub
consensus engine Task testing
Dominant language
C
Stars
4
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Now we have tests for basic primitives but no tests for T.Crypto.Containers. What is needed:

## ValidatorSet
- [ ] `makeValidatorSet` drops duplicate validators
- [ ] `totalVotingPower` is correct
- [ ] `validatorSetSize` is correct
- [ ] `validatorByIndex` & `indexByValidator` correct and
- [ ] `indexByIntervalPoint`

## SignedSet
- [ ] insertion works
- [ ] insertion of duplicates
- [ ] insertion of conflicting votes
- [ ] insertion of unknown votes

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.