Skip to content

Commit

Permalink
Fix test for diversity
Browse files Browse the repository at this point in the history
  • Loading branch information
mikessh committed Oct 30, 2017
1 parent a9e6c15 commit fe30ee8
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ class ExactEstimatorTest {
assert lower < 1.001
return upper > 0.9

case "normalizedShannonWienerIndex":
assert lower >= 0
assert upper <= 1
return lower > 0.9

case "shannonWienerIndex":
assert lower < 1.001 * tableGenerator.observedSpecies
return upper > 0.7 * tableGenerator.observedSpecies
Expand Down

0 comments on commit fe30ee8

Please sign in to comment.