Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pybind11
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
pybind11
Commits
ef8a13c2
Commit
ef8a13c2
authored
Jan 24, 2021
by
Ralf W. Grosse-Kunstleve
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renaming test_type_caster_bare_interface_demo to test_type_caster_bare_interface.
parent
edfe8bfd
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
tests/test_type_caster_bare_interface.cpp
+6
-6
tests/test_type_caster_bare_interface.py
+1
-1
No files found.
tests/test_type_caster_bare_interface
_demo
.cpp
→
tests/test_type_caster_bare_interface.cpp
View file @
ef8a13c2
...
...
@@ -3,7 +3,7 @@
#include <memory>
namespace
pybind11_tests
{
namespace
type_caster_bare_interface
_demo
{
namespace
type_caster_bare_interface
{
struct
mpty
{};
...
...
@@ -37,13 +37,13 @@ const char* pass_mpty_uqcp(std::unique_ptr<mpty const>) { return "load_uqcp"; }
// clang-format on
}
// namespace type_caster_bare_interface
_demo
}
// namespace type_caster_bare_interface
}
// namespace pybind11_tests
namespace
pybind11
{
namespace
detail
{
using
namespace
pybind11_tests
::
type_caster_bare_interface
_demo
;
using
namespace
pybind11_tests
::
type_caster_bare_interface
;
template
<>
struct
type_caster
<
mpty
>
{
...
...
@@ -177,9 +177,9 @@ struct type_caster<std::unique_ptr<mpty const>> {
}
// namespace pybind11
namespace
pybind11_tests
{
namespace
type_caster_bare_interface
_demo
{
namespace
type_caster_bare_interface
{
TEST_SUBMODULE
(
type_caster_bare_interface
_demo
,
m
)
{
TEST_SUBMODULE
(
type_caster_bare_interface
,
m
)
{
m
.
def
(
"rtrn_mpty_valu"
,
rtrn_mpty_valu
);
m
.
def
(
"rtrn_mpty_rref"
,
rtrn_mpty_rref
);
m
.
def
(
"rtrn_mpty_cref"
,
rtrn_mpty_cref
);
...
...
@@ -207,5 +207,5 @@ TEST_SUBMODULE(type_caster_bare_interface_demo, m) {
m
.
def
(
"pass_mpty_uqcp"
,
pass_mpty_uqcp
);
}
}
// namespace type_caster_bare_interface
_demo
}
// namespace type_caster_bare_interface
}
// namespace pybind11_tests
tests/test_type_caster_bare_interface
_demo
.py
→
tests/test_type_caster_bare_interface.py
View file @
ef8a13c2
# -*- coding: utf-8 -*-
from
pybind11_tests
import
type_caster_bare_interface
_demo
as
m
from
pybind11_tests
import
type_caster_bare_interface
as
m
def
test_cast
():
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment