aboutsummaryrefslogtreecommitdiffstats
path: root/util/string/split_ut.cpp
diff options
context:
space:
mode:
authordmasloff <dmasloff@yandex-team.com>2024-08-17 23:33:42 +0300
committerdmasloff <dmasloff@yandex-team.com>2024-08-17 23:43:45 +0300
commit69340f4614e853b9319df4b454ab7497711ee3cd (patch)
tree9902a3e2f58fe0bd9a157e7b51ad1cc52efa5744 /util/string/split_ut.cpp
parenta905b53ec410defd5d2c40031ef8b34bb50a29f8 (diff)
downloadydb-69340f4614e853b9319df4b454ab7497711ee3cd.tar.gz
Set SpacesInLineCommentPrefix to 1 in /util
Set SpacesInLineCommentPrefix to 1 in /util 3853f9ec5143722c1bebd8dc0ffc9b61a6c17657
Diffstat (limited to 'util/string/split_ut.cpp')
-rw-r--r--util/string/split_ut.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/util/string/split_ut.cpp b/util/string/split_ut.cpp
index ce3054bce1..b3dbdc33b8 100644
--- a/util/string/split_ut.cpp
+++ b/util/string/split_ut.cpp
@@ -579,15 +579,15 @@ Y_UNIT_TEST_SUITE(StringSplitter) {
UNIT_ASSERT_VALUES_EQUAL(b, 500);
UNIT_ASSERT_VALUES_EQUAL(c, 3);
- //not enough tokens
+ // not enough tokens
parsingSucceeded = StringSplitter("3,14").Split(',').TryCollectInto(&a, &b, &c);
UNIT_ASSERT(!parsingSucceeded);
- //too many tokens
+ // too many tokens
parsingSucceeded = StringSplitter("3,14,15,92,6").Split(',').TryCollectInto(&a, &b, &c);
UNIT_ASSERT(!parsingSucceeded);
- //where single TryFromString fails
+ // where single TryFromString fails
parsingSucceeded = StringSplitter("ot topota kopyt pyl po polu letit").Split(' ').TryCollectInto(&a, &b, &c);
UNIT_ASSERT(!parsingSucceeded);
}
@@ -713,7 +713,7 @@ Y_UNIT_TEST_SUITE(StringSplitter) {
Y_UNIT_TEST(TestStdSplitAfterSplit) {
std::string_view input = "a*b+a*b";
for (std::string_view summand : StringSplitter(input).Split('+')) {
- //FIXME: std::string is used to workaround MSVC ICE
+ // FIXME: std::string is used to workaround MSVC ICE
UNIT_ASSERT_VALUES_EQUAL(std::string(summand), "a*b");
std::string_view multiplier1, multiplier2;
bool splitResult = StringSplitter(summand).Split('*').TryCollectInto(&multiplier1, &multiplier2);