MCPcopy Create free account
hub / github.com/boostorg/json / testIntegral

Method testIntegral

test/parse_into.cpp:223–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected