Add tests for Python -builtin -O and compactdefaultargs and update changes file

This commit is contained in:
William S Fulton 2016-04-02 10:23:06 +01:00
commit bbd1b8ed05
3 changed files with 8 additions and 0 deletions

View file

@ -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; }
};
%}

View file

@ -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