test: ipa: libipa: histogram: Add tests for small inter quantile mean ranges
Add tests for small inter quantile mean ranges. As these cases fail at the moment, mark the test as should_fail. Signed-off-by: Stefan Klug <stefan.klug@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
8936e81e3f
commit
3b9c432920
2 changed files with 5 additions and 1 deletions
|
@ -55,6 +55,10 @@ protected:
|
||||||
/* Test interquantile mean that starts and ends in the middle of a bin. */
|
/* Test interquantile mean that starts and ends in the middle of a bin. */
|
||||||
ASSERT_EQ(hist.interQuantileMean(0.25, 0.75), 1.0);
|
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;
|
return TestPass;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
libipa_test = [
|
libipa_test = [
|
||||||
{'name': 'fixedpoint', 'sources': ['fixedpoint.cpp']},
|
{'name': 'fixedpoint', 'sources': ['fixedpoint.cpp']},
|
||||||
{'name': 'histogram', 'sources': ['histogram.cpp']},
|
{'name': 'histogram', 'sources': ['histogram.cpp'], 'should_fail': true},
|
||||||
{'name': 'interpolator', 'sources': ['interpolator.cpp']},
|
{'name': 'interpolator', 'sources': ['interpolator.cpp']},
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue