mirror of
https://github.com/pocketpy/pocketpy
synced 2025-11-06 11:40:16 +00:00
some format.
This commit is contained in:
parent
f09bd398cb
commit
0e48ac0763
@ -1,7 +1,5 @@
|
||||
#include "pybind11/internal/builtins.h"
|
||||
#include "test.h"
|
||||
#include <pybind11/operators.h>
|
||||
#include <vector>
|
||||
#include "pybind11/operators.h"
|
||||
|
||||
namespace {
|
||||
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user