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 | 3e57c324d47a3a202cb3c5a9648d2f92103d5213 (patch) | |
tree | 6913479b0d0b22ec99bbba7c96f2f930d9095600 /util/string/split_ut.cpp | |
parent | bebbbda5c5ff4ec70d301ac897eb8d6c8da7a9a4 (diff) | |
download | ydb-3e57c324d47a3a202cb3c5a9648d2f92103d5213.tar.gz |
Restoring authorship annotation for <fippo@yandex-team.ru>. Commit 1 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 43e59f2d75..e027d1ac7d 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"); |