Added debugging info to test case.
[SVN r50162]
This commit is contained in:
parent
adb945b074
commit
6a51e23333
@ -15,10 +15,46 @@
|
||||
#pragma warning(disable: 4127) // conditional expression is constant
|
||||
#endif
|
||||
|
||||
const char* method_name(const boost::math::detail::native_tag&)
|
||||
{
|
||||
return "Native";
|
||||
}
|
||||
|
||||
const char* method_name(const boost::math::detail::generic_tag<true>&)
|
||||
{
|
||||
return "Generic (with numeric limits)";
|
||||
}
|
||||
|
||||
const char* method_name(const boost::math::detail::generic_tag<false>&)
|
||||
{
|
||||
return "Generic (without numeric limits)";
|
||||
}
|
||||
|
||||
const char* method_name(const boost::math::detail::ieee_tag&)
|
||||
{
|
||||
return "IEEE std";
|
||||
}
|
||||
|
||||
const char* method_name(const boost::math::detail::ieee_copy_all_bits_tag&)
|
||||
{
|
||||
return "IEEE std, copy all bits";
|
||||
}
|
||||
|
||||
const char* method_name(const boost::math::detail::ieee_copy_leading_bits_tag&)
|
||||
{
|
||||
return "IEEE std, copy leading bits";
|
||||
}
|
||||
|
||||
template <class T>
|
||||
void test_classify(T t, const char* type)
|
||||
{
|
||||
std::cout << "Testing type " << type << std::endl;
|
||||
|
||||
typedef typename boost::math::detail::fp_traits<T>::type traits;
|
||||
typedef typename traits::method method;
|
||||
|
||||
std::cout << "Evaluation method = " << method_name(method()) << std::endl;
|
||||
|
||||
t = 2;
|
||||
T u = 2;
|
||||
BOOST_CHECK_EQUAL((::boost::math::fpclassify)(t), (int)FP_NORMAL);
|
||||
|
Loading…
Reference in New Issue
Block a user