aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/html/pcdata/pcdata_ut.cpp
diff options
context:
space:
mode:
authorVlad Yaroslavlev <vladon@vladon.com>2022-02-10 16:46:23 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:23 +0300
commit706b83ed7de5a473436620367af31fc0ceecde07 (patch)
tree103305d30dec77e8f6367753367f59b3cd68f9f1 /library/cpp/html/pcdata/pcdata_ut.cpp
parent918e8a1574070d0ec733f0b76cfad8f8892ad2e5 (diff)
downloadydb-706b83ed7de5a473436620367af31fc0ceecde07.tar.gz
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/html/pcdata/pcdata_ut.cpp')
-rw-r--r--library/cpp/html/pcdata/pcdata_ut.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/library/cpp/html/pcdata/pcdata_ut.cpp b/library/cpp/html/pcdata/pcdata_ut.cpp
index 5833f8bc59..6710d9dfce 100644
--- a/library/cpp/html/pcdata/pcdata_ut.cpp
+++ b/library/cpp/html/pcdata/pcdata_ut.cpp
@@ -6,18 +6,18 @@ Y_UNIT_TEST_SUITE(TPcdata) {
Y_UNIT_TEST(TestStress) {
{
ui64 key = 0x000017C0B76C4E87ull;
- TString res = EncodeHtmlPcdata(TStringBuf((const char*)&key, sizeof(key)));
+ TString res = EncodeHtmlPcdata(TStringBuf((const char*)&key, sizeof(key)));
}
for (size_t i = 0; i < 1000; ++i) {
- const TString s = NUnitTest::RandomString(i, i);
+ const TString s = NUnitTest::RandomString(i, i);
UNIT_ASSERT_VALUES_EQUAL(DecodeHtmlPcdata(EncodeHtmlPcdata(s)), s);
}
}
Y_UNIT_TEST(Test1) {
- const TString tests[] = {
+ const TString tests[] = {
"qw&qw",
"&<",
">&qw",
@@ -33,7 +33,7 @@ Y_UNIT_TEST_SUITE(TPcdata) {
}
Y_UNIT_TEST(TestEncodeHtmlPcdataAppend) {
- TString s;
+ TString s;
EncodeHtmlPcdataAppend("m&m", s);
EncodeHtmlPcdataAppend("'s", s);
UNIT_ASSERT_VALUES_EQUAL(EncodeHtmlPcdata("m&m's"), s);