Home
last modified time | relevance | path

Searched refs:pii_t (Results 1 – 4 of 4) sorted by relevance

/third_party/boost/libs/histogram/test/
Daxis_variable_test.cpp97 using pii_t = std::pair<axis::index_type, axis::index_type>; in main() typedef
100 BOOST_TEST_EQ(a.update(0), pii_t(0, 0)); in main()
102 BOOST_TEST_EQ(a.update(1.1), pii_t(1, -1)); in main()
107 BOOST_TEST_EQ(a.update(-0.1), pii_t(0, 1)); in main()
110 BOOST_TEST_EQ(a.update(10), pii_t(3, -1)); in main()
113 BOOST_TEST_EQ(a.update(-10), pii_t(0, 1)); in main()
117 BOOST_TEST_EQ(a.update(-std::numeric_limits<double>::infinity()), pii_t(-1, 0)); in main()
118 BOOST_TEST_EQ(a.update(std::numeric_limits<double>::infinity()), pii_t(a.size(), 0)); in main()
119 BOOST_TEST_EQ(a.update(std::numeric_limits<double>::quiet_NaN()), pii_t(a.size(), 0)); in main()
Daxis_integer_test.cpp144 using pii_t = std::pair<axis::index_type, axis::index_type>; in main() typedef
147 BOOST_TEST_EQ(a.update(0), pii_t(0, -1)); in main()
149 BOOST_TEST_EQ(a.update(1), pii_t(1, -1)); in main()
151 BOOST_TEST_EQ(a.update(-1), pii_t(0, 1)); in main()
153 BOOST_TEST_EQ(a.update(std::numeric_limits<double>::infinity()), pii_t(a.size(), 0)); in main()
154 BOOST_TEST_EQ(a.update(std::numeric_limits<double>::quiet_NaN()), pii_t(a.size(), 0)); in main()
155 BOOST_TEST_EQ(a.update(-std::numeric_limits<double>::infinity()), pii_t(-1, 0)); in main()
Daxis_regular_test.cpp204 using pii_t = std::pair<axis::index_type, axis::index_type>; in main() typedef
207 BOOST_TEST_EQ(a.update(0), pii_t(0, 0)); in main()
209 BOOST_TEST_EQ(a.update(1), pii_t(1, -1)); in main()
213 BOOST_TEST_EQ(a.update(-1), pii_t(0, 1)); in main()
217 BOOST_TEST_EQ(a.update(-10), pii_t(0, 9)); in main()
221 BOOST_TEST_EQ(a.update(std::numeric_limits<double>::infinity()), pii_t(a.size(), 0)); in main()
222 BOOST_TEST_EQ(a.update(std::numeric_limits<double>::quiet_NaN()), pii_t(a.size(), 0)); in main()
223 BOOST_TEST_EQ(a.update(-std::numeric_limits<double>::infinity()), pii_t(-1, 0)); in main()
Daxis_category_test.cpp136 using pii_t = std::pair<axis::index_type, axis::index_type>; in main() typedef
139 BOOST_TEST_EQ(a.update(5), pii_t(0, -1)); in main()
141 BOOST_TEST_EQ(a.update(1), pii_t(1, -1)); in main()
143 BOOST_TEST_EQ(a.update(10), pii_t(2, -1)); in main()
145 BOOST_TEST_EQ(a.update(10), pii_t(2, 0)); in main()