Changeset 77040


Ignore:
Timestamp:
Feb 16, 2012, 5:57:52 PM (6 years ago)
Author:
Antony Polukhin
Message:

More tests for fixed #5689 (issue mentiond in 5th comment)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libs/conversion/test/lexical_cast_inf_nan_test.cpp

    r74720 r77040  
    8686    BOOST_CHECK( is_pos_inf( lexical_cast<test_t>("+INFINITY") ) );
    8787
     88    BOOST_CHECK( is_pos_inf( lexical_cast<test_t>("iNfiNity") ) );
     89    BOOST_CHECK( is_pos_inf( lexical_cast<test_t>("INfinity") ) );
     90
     91    BOOST_CHECK( is_neg_inf( lexical_cast<test_t>("-inFINITY") ) );
     92    BOOST_CHECK( is_neg_inf( lexical_cast<test_t>("-INFINITY") ) );
     93
    8894    BOOST_CHECK( is_pos_nan( lexical_cast<test_t>("nan") ) );
    8995    BOOST_CHECK( is_pos_nan( lexical_cast<test_t>("NAN") ) );
     
    94100    BOOST_CHECK( is_pos_nan( lexical_cast<test_t>("+nan") ) );
    95101    BOOST_CHECK( is_pos_nan( lexical_cast<test_t>("+NAN") ) );
     102
     103    BOOST_CHECK( is_pos_nan( lexical_cast<test_t>("nAn") ) );
     104    BOOST_CHECK( is_pos_nan( lexical_cast<test_t>("NaN") ) );
     105
     106    BOOST_CHECK( is_neg_nan( lexical_cast<test_t>("-nAn") ) );
     107    BOOST_CHECK( is_neg_nan( lexical_cast<test_t>("-NaN") ) );
     108
     109    BOOST_CHECK( is_pos_nan( lexical_cast<test_t>("+Nan") ) );
     110    BOOST_CHECK( is_pos_nan( lexical_cast<test_t>("+nAN") ) );
    96111
    97112    BOOST_CHECK( is_pos_nan( lexical_cast<test_t>("nan()") ) );
     
    128143    BOOST_CHECK( is_pos_inf( lexical_cast<test_t>(L"+INFINITY") ) );
    129144
     145    BOOST_CHECK( is_neg_inf( lexical_cast<test_t>(L"-infINIty") ) );
     146    BOOST_CHECK( is_neg_inf( lexical_cast<test_t>(L"-INFiniTY") ) );
     147
     148    BOOST_CHECK( is_pos_inf( lexical_cast<test_t>(L"+inFINIty") ) );
     149    BOOST_CHECK( is_pos_inf( lexical_cast<test_t>(L"+INfinITY") ) );
     150
    130151    BOOST_CHECK( is_pos_nan( lexical_cast<test_t>(L"nan") ) );
    131152    BOOST_CHECK( is_pos_nan( lexical_cast<test_t>(L"NAN") ) );
Note: See TracChangeset for help on using the changeset viewer.