Testcase fix for R
Workaround bug in R when a method with default arguments end in 'get'
This commit is contained in:
parent
15ebf3df03
commit
63e2f636de
2 changed files with 3 additions and 3 deletions
|
|
@ -6,8 +6,8 @@ def check(flag):
|
||||||
|
|
||||||
rs = ResultSet()
|
rs = ResultSet()
|
||||||
|
|
||||||
check(rs.go_get(0, SearchPoint()) == -1)
|
check(rs.go_get_method(0, SearchPoint()) == -1)
|
||||||
check(rs.go_get(0, SearchPoint(), 100) == 100)
|
check(rs.go_get_method(0, SearchPoint(), 100) == 100)
|
||||||
|
|
||||||
check(rs.go_get_template(0, SearchPoint()) == -2)
|
check(rs.go_get_template(0, SearchPoint()) == -2)
|
||||||
check(rs.go_get_template(0, SearchPoint(), 100) == 100)
|
check(rs.go_get_template(0, SearchPoint(), 100) == 100)
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ public:
|
||||||
|
|
||||||
// Specialized template extend
|
// Specialized template extend
|
||||||
%extend gaia2::BaseResultSet<gaia2::SearchPoint, gaia2::DataSet> {
|
%extend gaia2::BaseResultSet<gaia2::SearchPoint, gaia2::DataSet> {
|
||||||
int go_get(int n, gaia2::SearchPoint, int offset = -1) {
|
int go_get_method(int n, gaia2::SearchPoint, int offset = -1) {
|
||||||
return offset;
|
return offset;
|
||||||
}
|
}
|
||||||
const char *over(gaia2::SearchPoint, int x = 0) {
|
const char *over(gaia2::SearchPoint, int x = 0) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue