#include <QuantizeHelper.hpp>
#include <boost/core/ignore_unused.hpp>
#include <boost/test/unit_test.hpp>
#include <vector>
Go to the source code of this file.
◆ BOOST_AUTO_TEST_CASE()
BOOST_AUTO_TEST_CASE |
( |
IsFloatIterFuncTest |
| ) |
|
Definition at line 27 of file QuantizeHelperTest.cpp.
References BOOST_AUTO_TEST_SUITE_END().
29 std::vector<float> fArray;
30 BOOST_TEST(IsFloatIterFunc(fArray.begin()) ==
true);
31 BOOST_TEST(IsFloatIterFunc(fArray.cbegin()) ==
true);
33 std::vector<double> dArray;
34 BOOST_TEST(IsFloatIterFunc(dArray.begin()) ==
true);
36 std::vector<int> iArray;
37 BOOST_TEST(IsFloatIterFunc(iArray.begin()) ==
false);
40 BOOST_TEST(IsFloatIterFunc(&floats[0]) ==
true);
43 BOOST_TEST(IsFloatIterFunc(&ints[0]) ==
false);