text
stringlengths 0
2.2M
|
---|
{ L_, "" },
|
{ L_, "Hello" },
|
{ L_, "World!!" },
|
};
|
printDefaultRoundTripTester(DATA);
|
}
|
if (verbose) cout << "\nTesting 'bsl::string'." << endl;
|
{
|
static const RoundTripTestData<bsl::string> DATA[] =
|
{
|
//line input
|
//---- ------------------
|
{ L_, "" },
|
{ L_, "Hello" },
|
{ L_, "World!!" },
|
{ L_, "&AB" },
|
{ L_, "A&B" },
|
{ L_, "AB&" },
|
{ L_, "<AB" },
|
{ L_, "A<B" },
|
{ L_, "AB<" },
|
{ L_, ">AB" },
|
{ L_, "A>B" },
|
{ L_, "AB>" },
|
{ L_, "\'AB" },
|
{ L_, "A\'B" },
|
{ L_, "AB\'" },
|
{ L_, "\"AB" },
|
{ L_, "A\"B" },
|
{ L_, "AB\"" },
|
{ L_, "\xC3\xB6" "AB" },
|
{ L_, "A" "\xC3\xB6" "B" },
|
{ L_, "AB" "\xC3\xB6" },
|
};
|
printDefaultRoundTripTester(DATA);
|
}
|
if (verbose) cout << "\nTesting 'bslstl::StringRef'." << endl;
|
{
|
static const RoundTripTestData<bslstl::StringRef> DATA[] =
|
{
|
//line input
|
//---- ------------------
|
{ L_, "" },
|
{ L_, "Hello" },
|
{ L_, "World!!" },
|
{ L_, "&AB" },
|
{ L_, "A&B" },
|
{ L_, "AB&" },
|
{ L_, "<AB" },
|
{ L_, "A<B" },
|
{ L_, "AB<" },
|
{ L_, ">AB" },
|
{ L_, "A>B" },
|
{ L_, "AB>" },
|
{ L_, "\'AB" },
|
{ L_, "A\'B" },
|
{ L_, "AB\'" },
|
{ L_, "\"AB" },
|
{ L_, "A\"B" },
|
{ L_, "AB\"" },
|
{ L_, "\xC3\xB6" "AB" },
|
{ L_, "A" "\xC3\xB6" "B" },
|
{ L_, "AB" "\xC3\xB6" },
|
};
|
printDefaultRoundTripTester(DATA);
|
}
|
if (verbose) cout << "\nTesting 'MyEnumeration::Value'." << endl;
|
{
|
static const RoundTripTestData<test::MyEnumeration::Value> DATA[] =
|
{
|
//line input
|
//---- -----
|
{ L_, test::MyEnumeration::VALUE1 },
|
{ L_, test::MyEnumeration::VALUE2 },
|
};
|
printDefaultRoundTripTester(DATA);
|
}
|
if (verbose) cout << "\nTesting 'CustomizedString'." << endl;
|
{
|
typedef test::CustomizedString Type;
|
static const RoundTripTestData<Type> DATA[] =
|
{
|
//line input
|
//---- -----
|
{ L_, Type("") },
|
{ L_, Type("a") },
|
{ L_, Type("ab") },
|
{ L_, Type("abc") },
|
{ L_, Type("abcd") },
|
{ L_, Type("abcde") },
|
};
|
printDefaultRoundTripTester(DATA);
|
}
|
if (verbose) cout << "\nTesting 'CustomizedInt'." << endl;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.