mirror of
https://github.com/opencv/opencv.git
synced 2025-07-26 07:07:37 +08:00
Add test checking we don't throw when creating GenericIndex with LshIndexParams()
This commit is contained in:
parent
fe09c79f4b
commit
cdac7c7bec
@ -90,4 +90,10 @@ void CV_LshTableBadArgTest::run( int /* start_from */ )
|
|||||||
|
|
||||||
TEST(Flann_LshTable, badarg) { CV_LshTableBadArgTest test; test.safe_run(); }
|
TEST(Flann_LshTable, badarg) { CV_LshTableBadArgTest test; test.safe_run(); }
|
||||||
|
|
||||||
|
TEST(Flann_LshTable, bad_any_cast) {
|
||||||
|
Mat features = Mat::ones(1, 64, CV_8U);
|
||||||
|
EXPECT_NO_THROW(flann::GenericIndex<cvflann::Hamming2<unsigned char> >(
|
||||||
|
features, cvflann::LshIndexParams()));
|
||||||
|
}
|
||||||
|
|
||||||
}} // namespace
|
}} // namespace
|
||||||
|
Loading…
Reference in New Issue
Block a user