aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/html/pcdata/pcdata_ut.cpp
diff options
context:
space:
mode:
authoryazevnul <yazevnul@yandex-team.ru>2022-02-10 16:46:48 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:48 +0300
commit9abfb1a53b7f7b791444d1378e645d8fad9b06ed (patch)
tree49e222ea1c5804306084bb3ae065bb702625360f /library/cpp/html/pcdata/pcdata_ut.cpp
parent8cbc307de0221f84c80c42dcbe07d40727537e2c (diff)
downloadydb-9abfb1a53b7f7b791444d1378e645d8fad9b06ed.tar.gz
Restoring authorship annotation for <yazevnul@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/html/pcdata/pcdata_ut.cpp')
-rw-r--r--library/cpp/html/pcdata/pcdata_ut.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/library/cpp/html/pcdata/pcdata_ut.cpp b/library/cpp/html/pcdata/pcdata_ut.cpp
index 90088712e2..5833f8bc59 100644
--- a/library/cpp/html/pcdata/pcdata_ut.cpp
+++ b/library/cpp/html/pcdata/pcdata_ut.cpp
@@ -2,8 +2,8 @@
#include <library/cpp/testing/unittest/registar.h>
-Y_UNIT_TEST_SUITE(TPcdata) {
- Y_UNIT_TEST(TestStress) {
+Y_UNIT_TEST_SUITE(TPcdata) {
+ Y_UNIT_TEST(TestStress) {
{
ui64 key = 0x000017C0B76C4E87ull;
TString res = EncodeHtmlPcdata(TStringBuf((const char*)&key, sizeof(key)));
@@ -16,23 +16,23 @@ Y_UNIT_TEST_SUITE(TPcdata) {
}
}
- Y_UNIT_TEST(Test1) {
+ Y_UNIT_TEST(Test1) {
const TString tests[] = {
"qw&qw",
"&<",
">&qw",
"\'&aaa"};
- for (auto s : tests) {
+ for (auto s : tests) {
UNIT_ASSERT_VALUES_EQUAL(DecodeHtmlPcdata(EncodeHtmlPcdata(s)), s);
}
}
- Y_UNIT_TEST(Test2) {
+ Y_UNIT_TEST(Test2) {
UNIT_ASSERT_VALUES_EQUAL(EncodeHtmlPcdata("&qqq"), "&amp;qqq");
}
- Y_UNIT_TEST(TestEncodeHtmlPcdataAppend) {
+ Y_UNIT_TEST(TestEncodeHtmlPcdataAppend) {
TString s;
EncodeHtmlPcdataAppend("m&m", s);
EncodeHtmlPcdataAppend("'s", s);
@@ -40,7 +40,7 @@ Y_UNIT_TEST_SUITE(TPcdata) {
UNIT_ASSERT_VALUES_EQUAL("m&amp;m&#39;s", s);
}
- Y_UNIT_TEST(TestStrangeAmpParameter) {
+ Y_UNIT_TEST(TestStrangeAmpParameter) {
UNIT_ASSERT_VALUES_EQUAL(EncodeHtmlPcdata("m&m's", true), "m&amp;m&#39;s");
UNIT_ASSERT_VALUES_EQUAL(EncodeHtmlPcdata("m&m's"), "m&amp;m&#39;s"); //default
UNIT_ASSERT_VALUES_EQUAL(EncodeHtmlPcdata("m&m's", false), "m&m&#39;s");