Skip to content

Commit 3fd6b65

Browse files
committed
apply fix-format
1 parent 0653894 commit 3fd6b65

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

test/source/test_dict.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
#include <doctest/doctest.h> // for ResultBuilder, TestCase, CHECK, TEST_CASE
22

3-
#include <py2cpp/dict.hpp> // for dict, key_iterator
3+
#include <py2cpp/dict.hpp> // for dict, key_iterator
44
// #include <unordered_map> // for operator!=, __hash_map_const_iterator
5-
#include <utility> // for pair
5+
#include <utility> // for pair
66

77
TEST_CASE("Test py::dict") {
8-
using E = std::pair<double, int>;
9-
const auto S = py::dict<double, int>{E{0.1, 1}, E{0.3, 3}, E{0.4, 4}};
10-
auto count = 0;
11-
for (const auto& p : S) {
12-
static_assert(sizeof(p) >= 0, "make compiler happy");
13-
++count;
14-
}
15-
CHECK(count == 3);
8+
using E = std::pair<double, int>;
9+
const auto S = py::dict<double, int>{E{0.1, 1}, E{0.3, 3}, E{0.4, 4}};
10+
auto count = 0;
11+
for (const auto &p : S) {
12+
static_assert(sizeof(p) >= 0, "make compiler happy");
13+
++count;
14+
}
15+
CHECK(count == 3);
1616
}

test/source/test_lict.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
#include <doctest/doctest.h> // for ResultBuilder, TestCase, CHECK, TEST_CASE
22

3-
#include <py2cpp/lict.hpp> // for Lict, key_iterator
3+
#include <py2cpp/lict.hpp> // for Lict, key_iterator
44
#include <vector>
55

66
TEST_CASE("Test Lict") {
7-
const auto S = py::Lict<double>{std::vector<double>{0.6, 0.7, 0.8}};
8-
CHECK_EQ(S.size(), 3U);
9-
CHECK(S.contains(1));
10-
auto count = 0;
11-
for (const auto& p : S) {
12-
static_assert(sizeof(p) >= 0, "make compiler happy");
13-
++count;
14-
}
15-
CHECK(count == 3);
7+
const auto S = py::Lict<double>{std::vector<double>{0.6, 0.7, 0.8}};
8+
CHECK_EQ(S.size(), 3U);
9+
CHECK(S.contains(1));
10+
auto count = 0;
11+
for (const auto &p : S) {
12+
static_assert(sizeof(p) >= 0, "make compiler happy");
13+
++count;
14+
}
15+
CHECK(count == 3);
1616
}

0 commit comments

Comments
 (0)