diff options
author | swarmer <swarmer@yandex-team.ru> | 2022-02-10 16:46:31 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:31 +0300 |
commit | 317da38588b7898a99fd9168571408123350012b (patch) | |
tree | 25eebc31526019ad39a6c1b13f492963d97ba439 /util/string/split_ut.cpp | |
parent | 3b2241461d41d41ba1a706b0750c4f0f55c344f6 (diff) | |
download | ydb-317da38588b7898a99fd9168571408123350012b.tar.gz |
Restoring authorship annotation for <swarmer@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/string/split_ut.cpp')
-rw-r--r-- | util/string/split_ut.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/util/string/split_ut.cpp b/util/string/split_ut.cpp index 43e59f2d75..3ec9b302be 100644 --- a/util/string/split_ut.cpp +++ b/util/string/split_ut.cpp @@ -150,7 +150,7 @@ Y_UNIT_TEST_SUITE(SplitStringTest) { TestDelimiterOnRange<TContainerConvertingConsumer>(good, data.data(), data.end(), delim); } - Y_UNIT_TEST(TestCharSkipEmpty) { + Y_UNIT_TEST(TestCharSkipEmpty) { TString data("qw ab qwabcab "); TString canonic[] = {"qw", "ab", "qwabcab"}; TVector<TString> good(canonic, canonic + 3); @@ -559,14 +559,14 @@ Y_UNIT_TEST_SUITE(StringSplitter) { UNIT_ASSERT_EXCEPTION(StringSplitter("1 2 3").Split(' ').CollectInto(&a, &a), yexception); } - Y_UNIT_TEST(TestSplitStringWithIgnore) { - TStringBuf s; - StringSplitter("x y z").Split(' ').CollectInto(&std::ignore, &s, &std::ignore); - UNIT_ASSERT_VALUES_EQUAL(s, "y"); - - UNIT_ASSERT_EXCEPTION(StringSplitter("ignored != non-requred").Split(':').CollectInto(&s, &std::ignore), yexception); - } - + Y_UNIT_TEST(TestSplitStringWithIgnore) { + TStringBuf s; + StringSplitter("x y z").Split(' ').CollectInto(&std::ignore, &s, &std::ignore); + UNIT_ASSERT_VALUES_EQUAL(s, "y"); + + UNIT_ASSERT_EXCEPTION(StringSplitter("ignored != non-requred").Split(':').CollectInto(&s, &std::ignore), yexception); + } + Y_UNIT_TEST(TestTryCollectInto) { int a, b, c; bool parsingSucceeded; |