Remove redundant semicolons.

This commit is contained in:
levlam 2021-08-30 23:27:32 +03:00
parent 086ec3d2e5
commit 84ad2e5b19
8 changed files with 10 additions and 9 deletions

View File

@ -47,7 +47,8 @@ using Platform::String;
using Platform::NullReferenceException;
template <class Key, class Value> class ConcurrentDictionary {
template <class Key, class Value>
class ConcurrentDictionary {
public:
bool TryGetValue(Key key, Value &value) {
std::lock_guard<std::mutex> guard(mutex_);

View File

@ -33,7 +33,7 @@ TEST(Heap, sort_random_perm) {
ASSERT_EQ(i, kheap.top_key());
kheap.pop();
}
};
}
class CheckedHeap {
public:

View File

@ -92,7 +92,7 @@ static void bench_log(std::string name, F &&f) {
bench(LogBenchmark<typename decltype(f())::element_type>(name, threads_n, test_full_logging, f));
}
}
};
}
TEST(Log, Bench) {
bench_log("NullLog", [] { return td::make_unique<td::NullLog>(); });

View File

@ -68,4 +68,4 @@ TEST(Variant, simple) {
}
ASSERT_STREQ("-C", move_sb());
sb.clear();
};
}

View File

@ -132,7 +132,7 @@ TEST(DB, binlog_encryption) {
binlog_name.str(), [&](const BinlogEvent &x) { v.push_back(x.data_.str()); }, cucumber, hello);
CHECK(v == std::vector<string>({"AAAA", "BBBB", long_data, "CCCC"}));
}
};
}
TEST(DB, sqlite_lfs) {
string path = "test_sqlite_db";

View File

@ -48,7 +48,7 @@ TEST(MessageEntities, mention) {
check_mention(
"@ya @gif @wiki @vid @bing @pic @bold @imdb @ImDb @coub @like @vote @giff @cap ya cap @y @yar @bingg @bin",
{"@gif", "@wiki", "@vid", "@bing", "@pic", "@bold", "@imdb", "@ImDb", "@coub", "@like", "@vote", "@bingg"});
};
}
static void check_bot_command(const td::string &str, const td::vector<td::string> &expected) {
auto result_slice = td::find_bot_commands(str);

View File

@ -55,4 +55,4 @@ TEST(Poll, get_vote_percentage) {
check_vote_percentage({200, 200, 200, 300, 240, 60}, 1200, {16, 16, 16, 25, 20, 5});
check_vote_percentage({200, 200, 200, 250, 250, 20}, 1120, {18, 18, 18, 22, 22, 2});
check_vote_percentage({200, 200, 200, 250, 250, 40}, 1140, {17, 17, 17, 22, 22, 4});
};
}

View File

@ -25,7 +25,7 @@ TEST(StringCleaning, clean_name) {
ASSERT_EQ("abc", clean_name("\xC2\xA0\xC2\xA0"
"abc\xC2\xA0\xC2\xA0\xC2\xA0\xC2\xA0",
1000000));
};
}
TEST(StringCleaning, clean_username) {
ASSERT_EQ("@mention", clean_username("@mention"));
@ -34,7 +34,7 @@ TEST(StringCleaning, clean_username) {
ASSERT_EQ("ЛШТШФУМ", clean_username("ЛШТШФУМ"));
ASSERT_EQ("", clean_username("...."));
ASSERT_EQ("asd", clean_username(". ASD .."));
};
}
static void check_clean_input_string(string str, string expected, bool expected_result) {
auto result = clean_input_string(str);