summaryrefslogtreecommitdiff
path: root/test/ipa/libipa/histogram.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/ipa/libipa/histogram.cpp')
-rw-r--r--test/ipa/libipa/histogram.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ipa/libipa/histogram.cpp b/test/ipa/libipa/histogram.cpp
index 5ce84a61..77ff31a6 100644
--- a/test/ipa/libipa/histogram.cpp
+++ b/test/ipa/libipa/histogram.cpp
@@ -55,6 +55,10 @@ protected:
/* Test interquantile mean that starts and ends in the middle of a bin. */
ASSERT_EQ(hist.interQuantileMean(0.25, 0.75), 1.0);
+ /* Test small ranges at the borders of the histogram. */
+ ASSERT_EQ(hist.interQuantileMean(0.0, 0.1), 0.1);
+ ASSERT_EQ(hist.interQuantileMean(0.9, 1.0), 1.9);
+
return TestPass;
}
};