diff options
author | axc <axc@yandex-team.ru> | 2022-02-10 16:47:36 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:36 +0300 |
commit | 7b659037613268d5eac4a1b6a7c5eff3cd36d4bf (patch) | |
tree | c0748b5dcbade83af788c0abfa89c0383d6b779c /util/string/split_ut.cpp | |
parent | 1f5217043ad70f25dc35e75b3bd261a1e23d045e (diff) | |
download | ydb-7b659037613268d5eac4a1b6a7c5eff3cd36d4bf.tar.gz |
Restoring authorship annotation for <axc@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 1b7872af1b..43e59f2d75 100644 --- a/util/string/split_ut.cpp +++ b/util/string/split_ut.cpp @@ -46,15 +46,15 @@ inline void Cmp(const T1& t1, const T2& t2) { throw; } } -} - +} + template <class T> inline void Print(const T& t) { for (typename T::const_iterator i = t.begin(); i != t.end(); ++i) { Cerr << *i << Endl; } -} - +} + template <template <typename> class TConsumer, typename TResult, typename I, typename TDelimiter> void TestDelimiterOnString(TResult& good, I* str, const TDelimiter& delim) { TResult test; @@ -62,8 +62,8 @@ void TestDelimiterOnString(TResult& good, I* str, const TDelimiter& delim) { SplitString(str, delim, consumer); Cmp(good, test); UNIT_ASSERT_EQUAL(good, test); -} - +} + template <template <typename> class TConsumer, typename TResult, typename I, typename TDelimiter> void TestDelimiterOnRange(TResult& good, I* b, I* e, const TDelimiter& delim) { TResult test; |