text
stringlengths 0
2.2M
|
---|
{
|
//line input
|
//---- -----
|
{ L_, -2147483647-1 },
|
{ L_, -2147483647 },
|
{ L_, -1 },
|
{ L_, 0 },
|
{ L_, 1 },
|
{ L_, 2147483646 },
|
{ L_, 2147483647 },
|
};
|
printDecimalRoundTripTester(DATA);
|
}
|
if (verbose) cout << "\nUsing 'long'." << endl;
|
{
|
static const RoundTripTestData<long> DATA[] =
|
{
|
//line input
|
//---- -----
|
{ L_, -2147483647-1 },
|
{ L_, -2147483647 },
|
{ L_, -1 },
|
{ L_, 0 },
|
{ L_, 1 },
|
{ L_, 2147483646 },
|
{ L_, 2147483647 },
|
#ifdef U_LONG_IS_64_BITS
|
{ L_, -9223372036854775807LL - 1 },
|
{ L_, -9223372036854775807LL },
|
{ L_, 9223372036854775806LL },
|
{ L_, 9223372036854775807LL },
|
#endif
|
};
|
printDecimalRoundTripTester(DATA);
|
}
|
if (verbose) cout << "\nTesting 'bsls::Types::Int64'." << endl;
|
{
|
static const RoundTripTestData<bsls::Types::Int64> DATA[] =
|
{
|
//line input
|
//---- -----
|
{ L_, -9223372036854775807LL - 1 },
|
{ L_, -9223372036854775807LL },
|
{ L_, -1LL },
|
{ L_, 0LL },
|
{ L_, 1LL },
|
{ L_, 9223372036854775806LL },
|
{ L_, 9223372036854775807LL },
|
};
|
printDecimalRoundTripTester(DATA);
|
}
|
if (verbose) cout << "\nTesting 'unsigned char'." << endl;
|
{
|
static const RoundTripTestData<unsigned char> DATA[] =
|
{
|
//line input
|
//---- -----
|
{ L_, 0 },
|
{ L_, 1 },
|
{ L_, 254 },
|
{ L_, 255 },
|
};
|
printDecimalRoundTripTester(DATA);
|
}
|
if (verbose) cout << "\nTesting 'unsigned short'." << endl;
|
{
|
static const RoundTripTestData<unsigned short> DATA[] =
|
{
|
//line input
|
//---- -----
|
{ L_, 0 },
|
{ L_, 1 },
|
{ L_, 65534 },
|
{ L_, 65535 },
|
};
|
printDecimalRoundTripTester(DATA);
|
}
|
if (verbose) cout << "\nTesting 'unsigned int'." << endl;
|
{
|
static const RoundTripTestData<unsigned int> DATA[] =
|
{
|
//line input
|
//---- -----
|
{ L_, 0 },
|
{ L_, 1 },
|
{ L_, 4294967294U },
|
{ L_, 4294967295U },
|
};
|
printDecimalRoundTripTester(DATA);
|
}
|
if (verbose) cout << "\nTesting 'unsigned long'." << endl;
|
{
|
static const RoundTripTestData<unsigned long> DATA[] =
|
{
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.