Skip to content

Commit

Permalink
Remove redundant semicolons.
Browse files Browse the repository at this point in the history
  • Loading branch information
levlam committed Aug 30, 2021
1 parent 086ec3d commit 84ad2e5
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 9 deletions.
3 changes: 2 additions & 1 deletion tdutils/td/utils/port/CxCli.h
Original file line number Diff line number Diff line change
Expand Up @@ -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_);
Expand Down
2 changes: 1 addition & 1 deletion tdutils/test/heap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ TEST(Heap, sort_random_perm) {
ASSERT_EQ(i, kheap.top_key());
kheap.pop();
}
};
}

class CheckedHeap {
public:
Expand Down
2 changes: 1 addition & 1 deletion tdutils/test/log.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>(); });
Expand Down
2 changes: 1 addition & 1 deletion tdutils/test/variant.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,4 @@ TEST(Variant, simple) {
}
ASSERT_STREQ("-C", move_sb());
sb.clear();
};
}
2 changes: 1 addition & 1 deletion test/db.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion test/message_entities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion test/poll.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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});
};
}
4 changes: 2 additions & 2 deletions test/string_cleaning.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand All @@ -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);
Expand Down

0 comments on commit 84ad2e5

Please sign in to comment.