Home
last modified time | relevance | path

Searched refs:BOOST_CHECK_THROW (Results 1 – 25 of 111) sorted by relevance

12345

/third_party/boost/libs/lexical_cast/test/
Dlexical_cast_empty_input_test.cpp34 BOOST_CHECK_THROW(lexical_cast<int>(v), bad_lexical_cast); in do_test_on_empty_input()
35 BOOST_CHECK_THROW(lexical_cast<float>(v), bad_lexical_cast); in do_test_on_empty_input()
36 BOOST_CHECK_THROW(lexical_cast<double>(v), bad_lexical_cast); in do_test_on_empty_input()
38 BOOST_CHECK_THROW(lexical_cast<long double>(v), bad_lexical_cast); in do_test_on_empty_input()
40 BOOST_CHECK_THROW(lexical_cast<unsigned int>(v), bad_lexical_cast); in do_test_on_empty_input()
41 BOOST_CHECK_THROW(lexical_cast<unsigned short>(v), bad_lexical_cast); in do_test_on_empty_input()
43 BOOST_CHECK_THROW(lexical_cast<boost::ulong_long_type>(v), bad_lexical_cast); in do_test_on_empty_input()
44 BOOST_CHECK_THROW(lexical_cast<boost::long_long_type>(v), bad_lexical_cast); in do_test_on_empty_input()
46 BOOST_CHECK_THROW(lexical_cast<unsigned __int64>(v), bad_lexical_cast); in do_test_on_empty_input()
47 BOOST_CHECK_THROW(lexical_cast<__int64>(v), bad_lexical_cast); in do_test_on_empty_input()
[all …]
Dlexical_cast_no_locale_test.cpp39 BOOST_CHECK_THROW(lexical_cast<int>(v), bad_lexical_cast); in do_test_on_empty_input()
40 BOOST_CHECK_THROW(lexical_cast<float>(v), bad_lexical_cast); in do_test_on_empty_input()
41 BOOST_CHECK_THROW(lexical_cast<double>(v), bad_lexical_cast); in do_test_on_empty_input()
43 BOOST_CHECK_THROW(lexical_cast<long double>(v), bad_lexical_cast); in do_test_on_empty_input()
45 BOOST_CHECK_THROW(lexical_cast<unsigned int>(v), bad_lexical_cast); in do_test_on_empty_input()
46 BOOST_CHECK_THROW(lexical_cast<unsigned short>(v), bad_lexical_cast); in do_test_on_empty_input()
48 BOOST_CHECK_THROW(lexical_cast<boost::ulong_long_type>(v), bad_lexical_cast); in do_test_on_empty_input()
49 BOOST_CHECK_THROW(lexical_cast<boost::long_long_type>(v), bad_lexical_cast); in do_test_on_empty_input()
51 BOOST_CHECK_THROW(lexical_cast<unsigned __int64>(v), bad_lexical_cast); in do_test_on_empty_input()
52 BOOST_CHECK_THROW(lexical_cast<__int64>(v), bad_lexical_cast); in do_test_on_empty_input()
[all …]
Dlexical_cast_test.cpp145 BOOST_CHECK_THROW(lexical_cast<char>(123), bad_lexical_cast); in test_conversion_to_char()
151 BOOST_CHECK_THROW(lexical_cast<char>(""), bad_lexical_cast); in test_conversion_to_char()
152 BOOST_CHECK_THROW(lexical_cast<char>("Test"), bad_lexical_cast); in test_conversion_to_char()
155 BOOST_CHECK_THROW( in test_conversion_to_char()
157 BOOST_CHECK_THROW( in test_conversion_to_char()
165 BOOST_CHECK_THROW(lexical_cast<int>('A'), bad_lexical_cast); in test_conversion_to_int()
177 BOOST_CHECK_THROW(lexical_cast<int>(1.23), bad_lexical_cast); in test_conversion_to_int()
179 BOOST_CHECK_THROW(lexical_cast<int>(1e20), bad_lexical_cast); in test_conversion_to_int()
183 BOOST_CHECK_THROW( in test_conversion_to_int()
185 BOOST_CHECK_THROW(lexical_cast<int>(""), bad_lexical_cast); in test_conversion_to_int()
[all …]
Dlexical_cast_float_types_test.cpp83 BOOST_CHECK_THROW( in test_conversion_from_to_float_for_locale()
86BOOST_CHECK_THROW(lexical_cast<T>( std::string("100") + np.thousands_sep() ), bad_lexical_cast); in test_conversion_from_to_float_for_locale()
87BOOST_CHECK_THROW(lexical_cast<T>( np.thousands_sep() + std::string("100") ), bad_lexical_cast); in test_conversion_from_to_float_for_locale()
88BOOST_CHECK_THROW(lexical_cast<T>( std::string("1") + np.thousands_sep() + np.decimal_point() + "e… in test_conversion_from_to_float_for_locale()
89BOOST_CHECK_THROW(lexical_cast<T>( std::string("1e10") + np.thousands_sep() ), bad_lexical_cast); in test_conversion_from_to_float_for_locale()
90BOOST_CHECK_THROW(lexical_cast<T>( std::string("1") + np.thousands_sep() + "e10" ), bad_lexical_ca… in test_conversion_from_to_float_for_locale()
246 BOOST_CHECK_THROW(lexical_cast<test_t>("-1.e"), bad_lexical_cast); in test_converion_to_float_types()
247 BOOST_CHECK_THROW(lexical_cast<test_t>("-1.E"), bad_lexical_cast); in test_converion_to_float_types()
248 BOOST_CHECK_THROW(lexical_cast<test_t>("1.e"), bad_lexical_cast); in test_converion_to_float_types()
249 BOOST_CHECK_THROW(lexical_cast<test_t>("1.E"), bad_lexical_cast); in test_converion_to_float_types()
[all …]
Dlexical_cast_integral_types_test.cpp121 BOOST_CHECK_THROW(lexical_cast<CharT>(static_cast<T>(10)), bad_lexical_cast); in test_conversion_from_integral_to_char()
124 BOOST_CHECK_THROW(lexical_cast<CharT>(t), bad_lexical_cast); in test_conversion_from_integral_to_char()
141 BOOST_CHECK_THROW(lexical_cast<T>( static_cast<CharT>(zero + 10)), bad_lexical_cast); in test_conversion_from_char_to_integral()
142 BOOST_CHECK_THROW(lexical_cast<T>( static_cast<CharT>(zero - 1)), bad_lexical_cast); in test_conversion_from_char_to_integral()
271 BOOST_CHECK_THROW(lexical_cast<T>(s + zero), bad_lexical_cast); in test_conversion_from_string_to_integral()
272 BOOST_CHECK_THROW(lexical_cast<T>(s + nine), bad_lexical_cast); in test_conversion_from_string_to_integral()
278 BOOST_CHECK_THROW(lexical_cast<T>(s + zero), bad_lexical_cast); in test_conversion_from_string_to_integral()
279 BOOST_CHECK_THROW(lexical_cast<T>(s + nine), bad_lexical_cast); in test_conversion_from_string_to_integral()
284 BOOST_CHECK_THROW(lexical_cast<T>( s ), bad_lexical_cast); in test_conversion_from_string_to_integral()
298 BOOST_CHECK_THROW(lexical_cast<T>( to_str<CharT>(i)+s ), bad_lexical_cast); in test_conversion_from_string_to_integral()
[all …]
Dlexical_cast_arrays_test.cpp64 BOOST_CHECK_THROW(lexical_cast<short_arr_type>(val), boost::bad_lexical_cast); in testing_template_array_output_on_spec_value()
72 BOOST_CHECK_THROW(lexical_cast<ushort_arr_type>(val), boost::bad_lexical_cast); in testing_template_array_output_on_spec_value()
80 BOOST_CHECK_THROW(lexical_cast<sshort_arr_type>(val), boost::bad_lexical_cast); in testing_template_array_output_on_spec_value()
98 BOOST_CHECK_THROW(lexical_cast<wshort_arr_type>(val), boost::bad_lexical_cast); in testing_template_array_output_on_spec_value()
117 BOOST_CHECK_THROW(lexical_cast<u16short_arr_type>(val), boost::bad_lexical_cast); in testing_template_array_output_on_spec_value()
135 BOOST_CHECK_THROW(lexical_cast<u32short_arr_type>(val), boost::bad_lexical_cast); in testing_template_array_output_on_spec_value()
159 BOOST_CHECK_THROW(lexical_cast<short_arr_type>(val), boost::bad_lexical_cast); in testing_template_array_output_on_char_value()
167 BOOST_CHECK_THROW(lexical_cast<ushort_arr_type>(val), boost::bad_lexical_cast); in testing_template_array_output_on_char_value()
175 BOOST_CHECK_THROW(lexical_cast<sshort_arr_type>(val), boost::bad_lexical_cast); in testing_template_array_output_on_char_value()
197 BOOST_CHECK_THROW(lexical_cast<wshort_arr_type>(val), boost::bad_lexical_cast); in testing_template_array_output_on_char_value()
[all …]
Dlexical_cast_vc8_bug_test.cpp40 BOOST_CHECK_THROW(lexical_cast<T>(s), bad_lexical_cast); in test_too_long_number()
42 BOOST_CHECK_THROW(lexical_cast<T>(s), bad_lexical_cast); in test_too_long_number()
49 BOOST_CHECK_THROW(lexical_cast<T>(s), bad_lexical_cast); in test_too_long_number()
51 BOOST_CHECK_THROW(lexical_cast<T>(s), bad_lexical_cast); in test_too_long_number()
/third_party/boost/libs/multiprecision/test/
Dtest_checked_cpp_int.cpp58 BOOST_CHECK_THROW(Number(a * b), std::overflow_error); in test_signed_overflow()
77 BOOST_CHECK_THROW(++val, std::overflow_error); in test()
79 BOOST_CHECK_THROW(test_type(1 + val), std::overflow_error); in test()
80 BOOST_CHECK_THROW(test_type(val + 1), std::overflow_error); in test()
81 BOOST_CHECK_THROW(test_type(2 * val), std::overflow_error); in test()
84 BOOST_CHECK_THROW(test_type(2 * val), std::overflow_error); in test()
89 BOOST_CHECK_THROW(--val, std::overflow_error); in test()
91 BOOST_CHECK_THROW(test_type(val - 1), std::overflow_error); in test()
92 BOOST_CHECK_THROW(test_type(2 * val), std::overflow_error); in test()
95 BOOST_CHECK_THROW(test_type(2 * val), std::overflow_error); in test()
[all …]
Dtest_round.cpp332BOOST_CHECK_THROW(result = static_cast<T>(iround(static_cast<T>(1e20))), boost::math::rounding_err… in test()
333BOOST_CHECK_THROW(result = static_cast<T>(iround(static_cast<T>(-1e20))), boost::math::rounding_er… in test()
334BOOST_CHECK_THROW(result = static_cast<T>(lround(static_cast<T>(1e20))), boost::math::rounding_err… in test()
335BOOST_CHECK_THROW(result = static_cast<T>(lround(static_cast<T>(-1e20))), boost::math::rounding_er… in test()
337BOOST_CHECK_THROW(result = static_cast<T>(llround(static_cast<T>(1e20))), boost::math::rounding_er… in test()
338BOOST_CHECK_THROW(result = static_cast<T>(llround(static_cast<T>(-1e20))), boost::math::rounding_e… in test()
343BOOST_CHECK_THROW(result = static_cast<T>(iround(std::numeric_limits<T>::infinity())), boost::math… in test()
344BOOST_CHECK_THROW(result = static_cast<T>(iround(-std::numeric_limits<T>::infinity())), boost::mat… in test()
345BOOST_CHECK_THROW(result = static_cast<T>(lround(std::numeric_limits<T>::infinity())), boost::math… in test()
346BOOST_CHECK_THROW(result = static_cast<T>(lround(-std::numeric_limits<T>::infinity())), boost::mat… in test()
[all …]
/third_party/boost/libs/iostreams/test/
Dexecute_test.cpp203 BOOST_CHECK_THROW( in operation_throws_test()
213 BOOST_CHECK_THROW( in operation_throws_test()
226 BOOST_CHECK_THROW( in operation_throws_test()
241 BOOST_CHECK_THROW( in operation_throws_test()
259 BOOST_CHECK_THROW( in cleanup_throws_test()
272 BOOST_CHECK_THROW( in cleanup_throws_test()
286 BOOST_CHECK_THROW( in cleanup_throws_test()
301 BOOST_CHECK_THROW( in cleanup_throws_test()
317 BOOST_CHECK_THROW( in cleanup_throws_test()
333 BOOST_CHECK_THROW( in cleanup_throws_test()
[all …]
Dnewline_test.cpp319 BOOST_CHECK_THROW( in read_newline_checker()
323 BOOST_CHECK_THROW( in read_newline_checker()
327 BOOST_CHECK_THROW( in read_newline_checker()
331 BOOST_CHECK_THROW( in read_newline_checker()
335 BOOST_CHECK_THROW( in read_newline_checker()
339 BOOST_CHECK_THROW( in read_newline_checker()
343 BOOST_CHECK_THROW( in read_newline_checker()
347 BOOST_CHECK_THROW( in read_newline_checker()
351 BOOST_CHECK_THROW( in read_newline_checker()
355 BOOST_CHECK_THROW( in read_newline_checker()
[all …]
Dfile_descriptor_test.cpp89 BOOST_CHECK_THROW( in file_descriptor_test()
93 BOOST_CHECK_THROW( in file_descriptor_test()
97 BOOST_CHECK_THROW( in file_descriptor_test()
101 BOOST_CHECK_THROW( in file_descriptor_test()
105 BOOST_CHECK_THROW( in file_descriptor_test()
109 BOOST_CHECK_THROW( in file_descriptor_test()
220 BOOST_CHECK_THROW( in file_descriptor_test()
224 BOOST_CHECK_THROW( in file_descriptor_test()
228 BOOST_CHECK_THROW( in file_descriptor_test()
232 BOOST_CHECK_THROW( in file_descriptor_test()
[all …]
/third_party/boost/libs/numeric/odeint/test/
Dintegrate_overflow.cpp88 BOOST_CHECK_THROW(integrate_const(make_controlled<stepper_type>(1E-15, 1E-15), lorenz, x, in BOOST_AUTO_TEST_CASE()
92 BOOST_CHECK_THROW(integrate_const(make_controlled<stepper_type>(1E-5, 1E-5), lorenz, x, in BOOST_AUTO_TEST_CASE()
100 BOOST_CHECK_THROW(integrate_const(make_dense_output<stepper_type>(1E-15, 1E-15), lorenz, x, in BOOST_AUTO_TEST_CASE()
104 BOOST_CHECK_THROW(integrate_const(make_dense_output<stepper_type>(1E-5, 1E-5), lorenz, x, in BOOST_AUTO_TEST_CASE()
124 BOOST_CHECK_THROW(integrate_n_steps(make_controlled<stepper_type>(1E-15, 1E-15), lorenz, x, in BOOST_AUTO_TEST_CASE()
128 BOOST_CHECK_THROW(integrate_n_steps(make_controlled<stepper_type>(1E-5, 1E-5), lorenz, x, in BOOST_AUTO_TEST_CASE()
136 BOOST_CHECK_THROW(integrate_n_steps(make_dense_output<stepper_type>(1E-15, 1E-15), lorenz, x, in BOOST_AUTO_TEST_CASE()
140 BOOST_CHECK_THROW(integrate_n_steps(make_dense_output<stepper_type>(1E-5, 1E-5), lorenz, x, in BOOST_AUTO_TEST_CASE()
157BOOST_CHECK_THROW(integrate_times(stepper_type(), lorenz, x, t0, t1, 0.01, push_back_time(times), in BOOST_AUTO_TEST_CASE()
165 BOOST_CHECK_THROW(integrate_times(make_controlled<stepper_type>(1E-15, 1E-15), lorenz, x, in BOOST_AUTO_TEST_CASE()
[all …]
/third_party/boost/libs/type_erasure/test/
Dtest_any_cast.cpp34 BOOST_CHECK_THROW(any_cast<double>(x), bad_any_cast); in BOOST_AUTO_TEST_CASE()
37 BOOST_CHECK_THROW(any_cast<double>(y), bad_any_cast); in BOOST_AUTO_TEST_CASE()
46 BOOST_CHECK_THROW(any_cast<double&>(x), bad_any_cast); in BOOST_AUTO_TEST_CASE()
47 BOOST_CHECK_THROW(any_cast<const double&>(x), bad_any_cast); in BOOST_AUTO_TEST_CASE()
52 BOOST_CHECK_THROW(any_cast<const double&>(y), bad_any_cast); in BOOST_AUTO_TEST_CASE()
80 BOOST_CHECK_THROW(any_cast<double>(x), bad_any_cast); in BOOST_AUTO_TEST_CASE()
83 BOOST_CHECK_THROW(any_cast<double>(y), bad_any_cast); in BOOST_AUTO_TEST_CASE()
93 BOOST_CHECK_THROW(any_cast<double&>(x), bad_any_cast); in BOOST_AUTO_TEST_CASE()
94 BOOST_CHECK_THROW(any_cast<const double&>(x), bad_any_cast); in BOOST_AUTO_TEST_CASE()
98 BOOST_CHECK_THROW(any_cast<double&>(y), bad_any_cast); in BOOST_AUTO_TEST_CASE()
[all …]
/third_party/boost/libs/rational/test/
Drational_test.cpp530 BOOST_CHECK_THROW( boost::rational<T>( 3, 0), boost::bad_rational ); in BOOST_FIXTURE_TEST_SUITE()
531 BOOST_CHECK_THROW( boost::rational<T>(-2, 0), boost::bad_rational ); in BOOST_FIXTURE_TEST_SUITE()
532 BOOST_CHECK_THROW( boost::rational<T>( 0, 0), boost::bad_rational ); in BOOST_FIXTURE_TEST_SUITE()
549 BOOST_CHECK_THROW( r.assign( 4, 0), boost::bad_rational ); in BOOST_AUTO_TEST_CASE_TEMPLATE()
550 BOOST_CHECK_THROW( r.assign( 0, 0), boost::bad_rational ); in BOOST_AUTO_TEST_CASE_TEMPLATE()
551 BOOST_CHECK_THROW( r.assign(-7, 0), boost::bad_rational ); in BOOST_AUTO_TEST_CASE_TEMPLATE()
770 BOOST_CHECK_THROW( rational_type(23, 17) / rational_type(), in BOOST_AUTO_TEST_CASE_TEMPLATE()
772 BOOST_CHECK_THROW( rational_type( 4, 15) / static_cast<T>(0), in BOOST_AUTO_TEST_CASE_TEMPLATE()
783 BOOST_CHECK_THROW( r /= rational_type(), boost::bad_rational ); in BOOST_AUTO_TEST_CASE_TEMPLATE()
784 BOOST_CHECK_THROW( r /= static_cast<T>(0), boost::bad_rational ); in BOOST_AUTO_TEST_CASE_TEMPLATE()
[all …]
/third_party/boost/libs/regex/test/pathology/
Drecursion_test.cpp44 BOOST_CHECK_THROW(boost::regex_search(bad_text, what, e), std::runtime_error); in cpp_main()
46 BOOST_CHECK_THROW(boost::regex_search(bad_text, what, e), std::runtime_error); in cpp_main()
48 BOOST_CHECK_THROW(boost::regex_search(bad_text, what, e), std::runtime_error); in cpp_main()
50 BOOST_CHECK_THROW(boost::regex_search(bad_text, what, e), std::runtime_error); in cpp_main()
54 BOOST_CHECK_THROW(boost::regex_match(bad_text, what, e), std::runtime_error); in cpp_main()
56 BOOST_CHECK_THROW(boost::regex_match(bad_text, what, e), std::runtime_error); in cpp_main()
58 BOOST_CHECK_THROW(boost::regex_match(bad_text, what, e), std::runtime_error); in cpp_main()
60 BOOST_CHECK_THROW(boost::regex_match(bad_text, what, e), std::runtime_error); in cpp_main()
/third_party/boost/libs/log/test/run/
Dutil_stp_settings_parser.cpp155 BOOST_CHECK_THROW(logging::parse_settings(strm), logging::parse_error); in BOOST_AUTO_TEST_CASE()
170 BOOST_CHECK_THROW(logging::parse_settings(strm), logging::parse_error); in BOOST_AUTO_TEST_CASE()
185 BOOST_CHECK_THROW(logging::parse_settings(strm), logging::parse_error); in BOOST_AUTO_TEST_CASE()
200 BOOST_CHECK_THROW(logging::parse_settings(strm), logging::parse_error); in BOOST_AUTO_TEST_CASE()
215 BOOST_CHECK_THROW(logging::parse_settings(strm), logging::parse_error); in BOOST_AUTO_TEST_CASE()
230 BOOST_CHECK_THROW(logging::parse_settings(strm), logging::parse_error); in BOOST_AUTO_TEST_CASE()
245 BOOST_CHECK_THROW(logging::parse_settings(strm), logging::parse_error); in BOOST_AUTO_TEST_CASE()
260 BOOST_CHECK_THROW(logging::parse_settings(strm), logging::parse_error); in BOOST_AUTO_TEST_CASE()
275 BOOST_CHECK_THROW(logging::parse_settings(strm), logging::parse_error); in BOOST_AUTO_TEST_CASE()
290 BOOST_CHECK_THROW(logging::parse_settings(strm), logging::parse_error); in BOOST_AUTO_TEST_CASE()
Dutil_stp_formatter_parser.cpp243 BOOST_CHECK_THROW(logging::parse_formatter("%MyStr"), logging::parse_error); in BOOST_AUTO_TEST_CASE()
244 BOOST_CHECK_THROW(logging::parse_formatter("MyStr%"), logging::parse_error); in BOOST_AUTO_TEST_CASE()
245 BOOST_CHECK_THROW(logging::parse_formatter("%MyStr(%"), logging::parse_error); in BOOST_AUTO_TEST_CASE()
246 BOOST_CHECK_THROW(logging::parse_formatter("%MyStr)%"), logging::parse_error); in BOOST_AUTO_TEST_CASE()
247 BOOST_CHECK_THROW(logging::parse_formatter("%MyStr(param%"), logging::parse_error); in BOOST_AUTO_TEST_CASE()
248 BOOST_CHECK_THROW(logging::parse_formatter("%MyStr(param=%"), logging::parse_error); in BOOST_AUTO_TEST_CASE()
249 BOOST_CHECK_THROW(logging::parse_formatter("%MyStr(param)%"), logging::parse_error); in BOOST_AUTO_TEST_CASE()
250 BOOST_CHECK_THROW(logging::parse_formatter("%MyStr(param=)%"), logging::parse_error); in BOOST_AUTO_TEST_CASE()
251 BOOST_CHECK_THROW(logging::parse_formatter("%MyStr(=value)%"), logging::parse_error); in BOOST_AUTO_TEST_CASE()
252 BOOST_CHECK_THROW(logging::parse_formatter("%MyStr(param,param2)%"), logging::parse_error); in BOOST_AUTO_TEST_CASE()
[all …]
/third_party/boost/libs/outcome/test/tests/
Dcore-outcome.cpp88 BOOST_CHECK_THROW(m.value(), boost::system::system_error);
90 BOOST_CHECK_THROW(m.exception(), bad_outcome_access);
91 BOOST_CHECK_THROW(boost::rethrow_exception(m.failure()), boost::system::system_error);
99 BOOST_CHECK_THROW(([&m]() -> void { return m.value(); }()), boost::system::system_error); in __anon7d4a23f20102()
101 BOOST_CHECK_THROW(m.exception(), bad_outcome_access);
102 BOOST_CHECK_THROW(boost::rethrow_exception(m.failure()), boost::system::system_error);
113 BOOST_CHECK_THROW(m.error(), bad_outcome_access);
114 BOOST_CHECK_THROW(m.exception(), bad_outcome_access);
137 BOOST_CHECK_THROW(m.error(), bad_outcome_access);
138 BOOST_CHECK_THROW(m.exception(), bad_outcome_access);
[all …]
/third_party/boost/libs/regex/test/unicode/
Dunicode_iterator_test.cpp95BOOST_CHECK_THROW(boost::u8_to_u32_iterator<const boost::uint8_t*>(bad_seq, bad_seq, bad_seq + 9),… in spot_checks()
96BOOST_CHECK_THROW(boost::u8_to_u32_iterator<const boost::uint8_t*>(bad_seq, bad_seq, bad_seq + 8),… in spot_checks()
97BOOST_CHECK_THROW(boost::u8_to_u32_iterator<const boost::uint8_t*>(bad_seq, bad_seq, bad_seq + 7),… in spot_checks()
98BOOST_CHECK_THROW(boost::u8_to_u32_iterator<const boost::uint8_t*>(bad_seq + 2, bad_seq, bad_seq +… in spot_checks()
99BOOST_CHECK_THROW(boost::u8_to_u32_iterator<const boost::uint8_t*>(bad_seq + 2, bad_seq + 2, bad_s… in spot_checks()
107BOOST_CHECK_THROW(boost::u16_to_u32_iterator<const boost::uint16_t*>(bad_seq2, bad_seq2, bad_seq2 … in spot_checks()
108BOOST_CHECK_THROW(boost::u16_to_u32_iterator<const boost::uint16_t*>(bad_seq2 + 1, bad_seq2 + 1, b… in spot_checks()
109BOOST_CHECK_THROW(boost::u16_to_u32_iterator<const boost::uint16_t*>(bad_seq2 + 1, bad_seq2, bad_s… in spot_checks()
112BOOST_CHECK_THROW(iterate_over(boost::u8_to_u32_iterator<const boost::uint8_t*>(bad_seq3, bad_seq3… in spot_checks()
114BOOST_CHECK_THROW(iterate_over(boost::u8_to_u32_iterator<const boost::uint8_t*>(bad_seq4, bad_seq4… in spot_checks()
[all …]
/third_party/boost/libs/geometry/index/test/rtree/exceptions/
Dtest_exceptions.hpp51 BOOST_CHECK_THROW( tree.insert(input.begin(), input.end()), throwing_value_copy_exception ); in test_rtree_value_exceptions()
61BOOST_CHECK_THROW( Tree tree(input.begin(), input.end(), parameters), throwing_value_copy_exceptio… in test_rtree_value_exceptions()
76 BOOST_CHECK_THROW( tree.remove(input.begin(), input.end()), throwing_value_copy_exception ); in test_rtree_value_exceptions()
93 BOOST_CHECK_THROW( Tree tree2(tree), throwing_value_copy_exception ); in test_rtree_value_exceptions()
109 BOOST_CHECK_THROW(tree2 = tree, throwing_value_copy_exception ); in test_rtree_value_exceptions()
140 BOOST_CHECK_THROW( tree.insert(input.begin(), input.end()), throwing_varray_exception ); in test_rtree_elements_exceptions()
152BOOST_CHECK_THROW( Tree tree(input.begin(), input.end(), parameters), throwing_varray_exception ); in test_rtree_elements_exceptions()
170 BOOST_CHECK_THROW( tree.remove(input.begin(), input.end()), throwing_varray_exception ); in test_rtree_elements_exceptions()
187 BOOST_CHECK_THROW( Tree tree2(tree), throwing_varray_exception ); in test_rtree_elements_exceptions()
203 BOOST_CHECK_THROW(tree2 = tree, throwing_varray_exception ); in test_rtree_elements_exceptions()
/third_party/boost/libs/test/test/utils-ts/
Druntime-param-test.cpp220 BOOST_CHECK_THROW( p3.add_cla_id( "^", "p", " " ), rt::invalid_cla_id ); in BOOST_AUTO_TEST_CASE()
221 BOOST_CHECK_THROW( p3.add_cla_id( " ", "p", " " ), rt::invalid_cla_id ); in BOOST_AUTO_TEST_CASE()
222 BOOST_CHECK_THROW( p3.add_cla_id( "", "p", " " ), rt::invalid_cla_id ); in BOOST_AUTO_TEST_CASE()
223 BOOST_CHECK_THROW( p3.add_cla_id( "-", "-abc", " " ), rt::invalid_cla_id ); in BOOST_AUTO_TEST_CASE()
224 BOOST_CHECK_THROW( p3.add_cla_id( "-", "b c", " " ), rt::invalid_cla_id ); in BOOST_AUTO_TEST_CASE()
225 BOOST_CHECK_THROW( p3.add_cla_id( "-", "", " " ), rt::invalid_cla_id ); in BOOST_AUTO_TEST_CASE()
226 BOOST_CHECK_THROW( p3.add_cla_id( "-", "a", "-" ), rt::invalid_cla_id ); in BOOST_AUTO_TEST_CASE()
227 BOOST_CHECK_THROW( p3.add_cla_id( "-", "a", "/" ), rt::invalid_cla_id ); in BOOST_AUTO_TEST_CASE()
228 BOOST_CHECK_THROW( p3.add_cla_id( "-", "a", "" ), rt::invalid_cla_id ); in BOOST_AUTO_TEST_CASE()
231 BOOST_CHECK_THROW( p7.add_cla_id( "-", "a", " " ), rt::invalid_cla_id ); in BOOST_AUTO_TEST_CASE()
[all …]
/third_party/boost/libs/ptr_container/test/
Dptr_vector.cpp59 BOOST_CHECK_THROW( vec.push_back(0), bad_ptr_container_operation ); in test_ptr_vector()
60 BOOST_CHECK_THROW( (vec.insert( vec.begin(), 0 )), bad_ptr_container_operation ); in test_ptr_vector()
61 BOOST_CHECK_THROW( vec.at( 42 ), bad_ptr_container_operation ); in test_ptr_vector()
63 BOOST_CHECK_THROW( (vec.replace(10u, new int(0))), bad_ptr_container_operation ); in test_ptr_vector()
64 BOOST_CHECK_THROW( (vec.replace(0u, 0)), bad_ptr_container_operation ); in test_ptr_vector()
65 BOOST_CHECK_THROW( (vec.replace(vec.begin(), 0 )), bad_ptr_container_operation ); in test_ptr_vector()
/third_party/boost/libs/math/test/
Dtest_1F0.hpp53 BOOST_CHECK_THROW(boost::math::hypergeometric_1F0(T(3), T(1)), std::domain_error); in test_spots()
54 BOOST_CHECK_THROW(boost::math::hypergeometric_1F0(T(-3), T(1)), std::domain_error); in test_spots()
55 BOOST_CHECK_THROW(boost::math::hypergeometric_1F0(T(3.25), T(1)), std::domain_error); in test_spots()
56 BOOST_CHECK_THROW(boost::math::hypergeometric_1F0(T(-3.25), T(1)), std::domain_error); in test_spots()
57 BOOST_CHECK_THROW(boost::math::hypergeometric_1F0(T(3.25), T(2)), std::domain_error); in test_spots()
58 BOOST_CHECK_THROW(boost::math::hypergeometric_1F0(T(-3.25), T(2)), std::domain_error); in test_spots()
/third_party/boost/libs/numeric/ublas/test/tensor/
Dtest_operators_comparison.cpp97 BOOST_CHECK_THROW ( b = (tensor_type(e1) >= tensor_type(e2)), std::runtime_error ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE()
98 BOOST_CHECK_THROW ( b = (tensor_type(e1) <= tensor_type(e2)), std::runtime_error ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE()
99 BOOST_CHECK_THROW ( b = (tensor_type(e1) < tensor_type(e2)), std::runtime_error ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE()
100 BOOST_CHECK_THROW ( b = (tensor_type(e1) > tensor_type(e2)), std::runtime_error ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE()
162BOOST_CHECK_THROW (b = tensor_type(e1) >= (tensor_type(e2) + tensor_type(e2)), std::runtime_err… in BOOST_FIXTURE_TEST_CASE_TEMPLATE()
163BOOST_CHECK_THROW (b = tensor_type(e1) <= (tensor_type(e2) + tensor_type(e2)), std::runtime_err… in BOOST_FIXTURE_TEST_CASE_TEMPLATE()
164BOOST_CHECK_THROW (b = tensor_type(e1) < (tensor_type(e2) + tensor_type(e2)), std::runtime_err… in BOOST_FIXTURE_TEST_CASE_TEMPLATE()
165BOOST_CHECK_THROW (b = tensor_type(e1) > (tensor_type(e2) + tensor_type(e2)), std::runtime_err… in BOOST_FIXTURE_TEST_CASE_TEMPLATE()
167 BOOST_CHECK_THROW (b = tensor_type(e1) >= (tensor_type(e2) + 2), std::runtime_error ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE()
168 BOOST_CHECK_THROW (b = tensor_type(e1) <= (2 + tensor_type(e2)), std::runtime_error ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE()
[all …]

12345