diff options
author | stanly <stanly@yandex-team.ru> | 2022-02-10 16:46:49 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:49 +0300 |
commit | cde218e65dfef5ce03a48d641fd8f7913cf17b2d (patch) | |
tree | d3349caea4095825a55b5ba24fe758067b29ce6f /library/cpp/html/escape/ut | |
parent | 9f813499b4ef585cb3c2bb93de93ef003daf4fc4 (diff) | |
download | ydb-cde218e65dfef5ce03a48d641fd8f7913cf17b2d.tar.gz |
Restoring authorship annotation for <stanly@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/html/escape/ut')
-rw-r--r-- | library/cpp/html/escape/ut/escape_ut.cpp | 24 | ||||
-rw-r--r-- | library/cpp/html/escape/ut/ya.make | 24 |
2 files changed, 24 insertions, 24 deletions
diff --git a/library/cpp/html/escape/ut/escape_ut.cpp b/library/cpp/html/escape/ut/escape_ut.cpp index cd7b955138..436f3b6a28 100644 --- a/library/cpp/html/escape/ut/escape_ut.cpp +++ b/library/cpp/html/escape/ut/escape_ut.cpp @@ -1,16 +1,16 @@ #include <library/cpp/html/escape/escape.h> #include <library/cpp/testing/unittest/registar.h> - -using namespace NHtml; - + +using namespace NHtml; + Y_UNIT_TEST_SUITE(TEscapeHtml) { Y_UNIT_TEST(Escape) { - UNIT_ASSERT_EQUAL(EscapeText("in & out"), "in & out"); - UNIT_ASSERT_EQUAL(EscapeText("&&"), "&&"); - UNIT_ASSERT_EQUAL(EscapeText("&"), "&amp;"); - - UNIT_ASSERT_EQUAL(EscapeText("<script>"), "<script>"); - - UNIT_ASSERT_EQUAL(EscapeText("text"), "text"); - } -} + UNIT_ASSERT_EQUAL(EscapeText("in & out"), "in & out"); + UNIT_ASSERT_EQUAL(EscapeText("&&"), "&&"); + UNIT_ASSERT_EQUAL(EscapeText("&"), "&amp;"); + + UNIT_ASSERT_EQUAL(EscapeText("<script>"), "<script>"); + + UNIT_ASSERT_EQUAL(EscapeText("text"), "text"); + } +} diff --git a/library/cpp/html/escape/ut/ya.make b/library/cpp/html/escape/ut/ya.make index 27d3a3d65a..4a0e12388d 100644 --- a/library/cpp/html/escape/ut/ya.make +++ b/library/cpp/html/escape/ut/ya.make @@ -1,13 +1,13 @@ -UNITTEST() - -OWNER(stanly) - -SRCS( - escape_ut.cpp -) - -PEERDIR( +UNITTEST() + +OWNER(stanly) + +SRCS( + escape_ut.cpp +) + +PEERDIR( library/cpp/html/escape -) - -END() +) + +END() |