diff options
author | swarmer <[email protected]> | 2022-02-10 16:46:31 +0300 |
---|---|---|
committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:46:31 +0300 |
commit | 11a24635da4c4f39428b182c49a7bc35e47c9534 (patch) | |
tree | 1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /util/string/split_ut.cpp | |
parent | 317da38588b7898a99fd9168571408123350012b (diff) |
Restoring authorship annotation for <[email protected]>. Commit 2 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 3ec9b302be0..43e59f2d754 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; |