| 221 | } |
| 222 | |
| 223 | void testIntegral() |
| 224 | { |
| 225 | testParseInto<char>( 'A' ); // ? |
| 226 | testParseInto<signed char>( -127 ); |
| 227 | testParseInto<unsigned char>( 255 ); |
| 228 | testParseInto<short>( -32767 ); |
| 229 | testParseInto<unsigned short>( 65535 ); |
| 230 | testParseInto<int>( -32767 ); |
| 231 | testParseInto<unsigned int>( 65535 ); |
| 232 | testParseInto<long>( LONG_MIN ); |
| 233 | testParseInto<unsigned long>( ULONG_MAX ); |
| 234 | testParseInto<long long>( LLONG_MIN ); |
| 235 | testParseInto<unsigned long long>( ULLONG_MAX ); |
| 236 | |
| 237 | testParseIntoErrors< int >( error::not_integer, "123" ); |
| 238 | testParseIntoErrors< int >( error::not_integer, true ); |
| 239 | testParseIntoErrors< int >( error::not_exact, LLONG_MIN ); |
| 240 | testParseIntoErrors< int >( error::not_exact, ULONG_MAX ); |
| 241 | } |
| 242 | |
| 243 | void testFloatingPoint() |
| 244 | { |
nothing calls this directly
no outgoing calls
no test coverage detected