diff options
author | fippo <fippo@yandex-team.ru> | 2022-02-10 16:50:08 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:08 +0300 |
commit | 7bf72dabd2102d9781c1ec7a754579757baa7b90 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /util/string/split_ut.cpp | |
parent | 3e57c324d47a3a202cb3c5a9648d2f92103d5213 (diff) | |
download | ydb-7bf72dabd2102d9781c1ec7a754579757baa7b90.tar.gz |
Restoring authorship annotation for <fippo@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/string/split_ut.cpp')
-rw-r--r-- | util/string/split_ut.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/util/string/split_ut.cpp b/util/string/split_ut.cpp index e027d1ac7d..43e59f2d75 100644 --- a/util/string/split_ut.cpp +++ b/util/string/split_ut.cpp @@ -262,7 +262,7 @@ Y_UNIT_TEST_SUITE(SplitStringTest) { UNIT_ASSERT_VALUES_EQUAL(num1, 22); UNIT_ASSERT_VALUES_EQUAL(num2, 33.5); UNIT_ASSERT_VALUES_EQUAL(strBuf, "xyz"); - } + } Y_UNIT_TEST(ConvenientSplitTestWithMaybe) { TString data("abc 42"); @@ -280,11 +280,11 @@ Y_UNIT_TEST_SUITE(SplitStringTest) { Y_UNIT_TEST(ConvenientSplitTestExceptions) { TString data("abc 22 33"); TString s1, s2, s3, s4; - - UNIT_ASSERT_EXCEPTION(Split(data, ' ', s1, s2), yexception); - UNIT_ASSERT_NO_EXCEPTION(Split(data, ' ', s1, s2, s3)); - UNIT_ASSERT_EXCEPTION(Split(data, ' ', s1, s2, s3, s4), yexception); - } + + UNIT_ASSERT_EXCEPTION(Split(data, ' ', s1, s2), yexception); + UNIT_ASSERT_NO_EXCEPTION(Split(data, ' ', s1, s2, s3)); + UNIT_ASSERT_EXCEPTION(Split(data, ' ', s1, s2, s3, s4), yexception); + } Y_UNIT_TEST(ConvenientSplitTestMaybeExceptions) { TString data("abc 22 33"); |