Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gwenaël Samain
cython
Commits
c4c0acc5
Commit
c4c0acc5
authored
Aug 20, 2014
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup C++ test.
parent
c79d2aa8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
tests/run/cpp_classes.pyx
tests/run/cpp_classes.pyx
+6
-6
No files found.
tests/run/cpp_classes.pyx
View file @
c4c0acc5
...
@@ -9,19 +9,19 @@ cdef extern from "shapes.h" namespace "shapes":
...
@@ -9,19 +9,19 @@ cdef extern from "shapes.h" namespace "shapes":
cdef
cppclass
Circle
(
Shape
):
cdef
cppclass
Circle
(
Shape
):
int
radius
int
radius
Circle
(
int
)
except
+
Circle
(
int
r
)
except
+
cdef
cppclass
Rectangle
(
Shape
):
cdef
cppclass
Rectangle
(
Shape
):
int
width
int
width
int
height
int
height
Rectangle
()
except
+
Rectangle
()
except
+
Rectangle
(
int
,
int
)
except
+
Rectangle
(
int
h
,
int
w
)
except
+
int
method
(
int
)
int
method
(
int
x
)
int
method
(
bint
)
int
method
(
bint
b
)
cdef
cppclass
Square
(
Rectangle
):
cdef
cppclass
Square
(
Rectangle
):
int
side
int
side
Square
(
int
)
except
+
Square
(
int
s
)
except
+
cdef
cppclass
Empty
(
Shape
):
cdef
cppclass
Empty
(
Shape
):
pass
pass
...
@@ -154,7 +154,7 @@ def test_template_class_member():
...
@@ -154,7 +154,7 @@ def test_template_class_member():
inner
.
push_back
(
Empty
())
inner
.
push_back
(
Empty
())
o
=
TemplateClassMember
()
o
=
TemplateClassMember
()
o
.
vec
.
push_back
(
inner
)
o
.
vec
.
push_back
(
inner
)
start_destructor_count
=
destructor_count
start_destructor_count
=
destructor_count
del
o
del
o
assert
destructor_count
-
start_destructor_count
==
2
,
\
assert
destructor_count
-
start_destructor_count
==
2
,
\
...
...
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