diff options
author | agorodilov <agorodilov@yandex-team.ru> | 2022-02-10 16:47:09 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:09 +0300 |
commit | 7a4979e6211c3e78c7f9041d4a9e5d3405343c36 (patch) | |
tree | 9e9943579e5a14679af7cd2cda3c36d8c0b775d3 /util/charset/utf8_ut.cpp | |
parent | 676340c42e269f3070f194d160f42a83a10568d4 (diff) | |
download | ydb-7a4979e6211c3e78c7f9041d4a9e5d3405343c36.tar.gz |
Restoring authorship annotation for <agorodilov@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/charset/utf8_ut.cpp')
-rw-r--r-- | util/charset/utf8_ut.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/util/charset/utf8_ut.cpp b/util/charset/utf8_ut.cpp index 9e68881cca..fc735f8331 100644 --- a/util/charset/utf8_ut.cpp +++ b/util/charset/utf8_ut.cpp @@ -1,9 +1,9 @@ #include "utf8.h" #include "wide.h" -#include <util/stream/file.h> +#include <util/stream/file.h> #include <util/ysaveload.h> - + #include <library/cpp/testing/unittest/registar.h> #include <library/cpp/testing/unittest/env.h> @@ -51,7 +51,7 @@ Y_UNIT_TEST_SUITE(TUtfUtilTest) { } } } - + Y_UNIT_TEST(TestToUpperUtfString) { UNIT_ASSERT_VALUES_EQUAL(ToUpperUTF8("xyz XYZ привет!"), "XYZ XYZ ПРИВЕТ!"); @@ -94,10 +94,10 @@ Y_UNIT_TEST_SUITE(TUtfUtilTest) { Y_UNIT_TEST(TestUTF8ToWide) { TFileInput in(ArcadiaSourceRoot() + TStringBuf("/util/charset/ut/utf8/test1.txt")); - + TString text = in.ReadAll(); - UNIT_ASSERT(WideToUTF8(UTF8ToWide(text)) == text); - } + UNIT_ASSERT(WideToUTF8(UTF8ToWide(text)) == text); + } Y_UNIT_TEST(TestInvalidUTF8) { TVector<TString> testData; |