From 83949399e8ce72e19d542f5b5e8941edf401fd5b Mon Sep 17 00:00:00 2001 From: daniloaf Date: Fri, 12 Feb 2010 05:56:19 -0300 Subject: [PATCH] Fix on test 'cpp_classes' --- tests/run/cpp_classes.pyx | 1 + tests/run/shapes.h | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/run/cpp_classes.pyx b/tests/run/cpp_classes.pyx index 9c51aed9..438e3ffa 100644 --- a/tests/run/cpp_classes.pyx +++ b/tests/run/cpp_classes.pyx @@ -19,6 +19,7 @@ cdef extern from "shapes.h" namespace shapes: cdef cppclass Rectangle(Shape): int width int height + Rectangle() Rectangle(int, int) cdef cppclass Square(Rectangle): diff --git a/tests/run/shapes.h b/tests/run/shapes.h index 033a30b8..aa24ba3b 100644 --- a/tests/run/shapes.h +++ b/tests/run/shapes.h @@ -17,6 +17,7 @@ namespace shapes { class Rectangle : public Shape { public: + Rectangle() { } Rectangle(int width, int height) { this->width = width; -- 2.26.2