From fe30ee861affcaf9ceaf7c7a0ffbf8e9c1da3175 Mon Sep 17 00:00:00 2001 From: mikessh Date: Mon, 30 Oct 2017 12:31:43 +0300 Subject: [PATCH] Fix test for diversity --- .../vdjtools/diversity/ExactEstimatorTest.groovy | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/test/groovy/com/antigenomics/vdjtools/diversity/ExactEstimatorTest.groovy b/src/test/groovy/com/antigenomics/vdjtools/diversity/ExactEstimatorTest.groovy index a265c290..6d86bef7 100644 --- a/src/test/groovy/com/antigenomics/vdjtools/diversity/ExactEstimatorTest.groovy +++ b/src/test/groovy/com/antigenomics/vdjtools/diversity/ExactEstimatorTest.groovy @@ -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