mirror of https://github.com/swig/swig
Add tests for Python -builtin -O and compactdefaultargs and update changes file
This commit is contained in:
parent
79bb343ffe
commit
bbd1b8ed05
|
@ -5,6 +5,10 @@ See the RELEASENOTES file for a summary of changes in each release.
|
|||
Version 3.0.9 (in progress)
|
||||
===========================
|
||||
|
||||
2016-04-02: derkuci
|
||||
[Python] Patch #610 to fix #607.
|
||||
Fix single arguments when using python -builtin -O with %feature("compactdefaultargs")
|
||||
|
||||
2016-03-31: wsfulton
|
||||
Fixes #594. Fix assertion for some languages when wrapping a C++11 enum class that
|
||||
is private in a class.
|
||||
|
|
|
@ -30,6 +30,7 @@ public:
|
|||
static const double PUBLIC_DEFAULT;
|
||||
Defaults2(int a = PRIVATE_DEFAULT) {}
|
||||
double ret(double d = PUBLIC_DEFAULT) { return d; }
|
||||
double nodefault(int x) { return x; }
|
||||
};
|
||||
%}
|
||||
|
||||
|
|
|
@ -17,3 +17,6 @@ if defaults2.ret(10.0) != 10.0:
|
|||
|
||||
if defaults2.ret() != -1.0:
|
||||
raise RuntimeError
|
||||
|
||||
if defaults2.nodefault(-2) != -2:
|
||||
raise RuntimeError
|
||||
|
|
Loading…
Reference in New Issue