oscoin / osrank-rs

A pre-alpha osrank implementation in Rust.
http://oscoin.io/
3 stars 3 forks source link

Add test for deterministic osrank #65

Closed adinapoli-mndc closed 5 years ago

adinapoli-mndc commented 5 years ago

Fixes #61.

This PR adds arguably the most important test of the testsuite: it tests (via quickcheck) that given a random graph and a random initial seed, if we run the osrank algorithm on the same (cloned) graph and the same seed twice, the results matches, i.e. given a fixed seed, the algorithm is deterministic.

codecov-io commented 5 years ago

Codecov Report

Merging #65 into master will increase coverage by 0.45%. The diff coverage is 100%.

@@            Coverage Diff             @@
##           master      #65      +/-   ##
==========================================
+ Coverage    80.2%   80.66%   +0.45%     
==========================================
  Files          14       14              
  Lines        1061     1081      +20     
==========================================
+ Hits          851      872      +21     
+ Misses        210      209       -1