mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-29 09:59:33 +08:00
clang format
This commit is contained in:
@@ -2,14 +2,12 @@
|
||||
#include "spdlog/details/circular_q.h"
|
||||
|
||||
using q_type = spdlog::details::circular_q<size_t>;
|
||||
TEST_CASE("test_size", "[circular_q]")
|
||||
{
|
||||
TEST_CASE("test_size", "[circular_q]") {
|
||||
const size_t q_size = 4;
|
||||
q_type q(q_size);
|
||||
REQUIRE(q.size() == 0);
|
||||
REQUIRE(q.empty() == true);
|
||||
for (size_t i = 0; i < q_size; i++)
|
||||
{
|
||||
for (size_t i = 0; i < q_size; i++) {
|
||||
q.push_back(std::move(i));
|
||||
}
|
||||
REQUIRE(q.size() == q_size);
|
||||
@@ -17,13 +15,11 @@ TEST_CASE("test_size", "[circular_q]")
|
||||
REQUIRE(q.size() == q_size);
|
||||
}
|
||||
|
||||
TEST_CASE("test_rolling", "[circular_q]")
|
||||
{
|
||||
TEST_CASE("test_rolling", "[circular_q]") {
|
||||
const size_t q_size = 4;
|
||||
q_type q(q_size);
|
||||
|
||||
for (size_t i = 0; i < q_size + 2; i++)
|
||||
{
|
||||
for (size_t i = 0; i < q_size + 2; i++) {
|
||||
q.push_back(std::move(i));
|
||||
}
|
||||
|
||||
@@ -47,8 +43,7 @@ TEST_CASE("test_rolling", "[circular_q]")
|
||||
REQUIRE(q.front() == 6);
|
||||
}
|
||||
|
||||
TEST_CASE("test_empty", "[circular_q]")
|
||||
{
|
||||
TEST_CASE("test_empty", "[circular_q]") {
|
||||
q_type q(0);
|
||||
q.push_back(1);
|
||||
REQUIRE(q.empty());
|
||||
|
Reference in New Issue
Block a user