some format.

This commit is contained in:
ykiko 2024-08-28 11:29:39 +08:00
parent f09bd398cb
commit 0e48ac0763
2 changed files with 4 additions and 5 deletions

View File

@ -1,7 +1,5 @@
#include "pybind11/internal/builtins.h"
#include "test.h"
#include <pybind11/operators.h>
#include <vector>
#include "pybind11/operators.h"
namespace {

View File

@ -1,5 +1,5 @@
#include "test.h"
#include <pybind11/stl.h>
#include "pybind11/stl.h"
namespace {
@ -119,7 +119,8 @@ TEST_F(PYBIND11_TEST, dict_like) {
py::object obj = py::cast(m);
EXPECT_EVAL_EQ("{'a': Point(1, 2), 'b': Point(3, 4)}", obj);
std::unordered_map<std::string, Point> m2 = obj.cast<std::unordered_map<std::string, Point>>();
std::unordered_map<std::string, Point> m2 =
obj.cast<std::unordered_map<std::string, Point>>();
EXPECT_EQ(m, m2);
}
}