Testcase fix for R

Workaround bug in R when a method with default arguments end in 'get'
This commit is contained in:
William S Fulton 2016-05-07 19:30:13 +01:00
parent 15ebf3df03
commit 63e2f636de
2 changed files with 3 additions and 3 deletions

View File

@ -6,8 +6,8 @@ def check(flag):
rs = ResultSet()
check(rs.go_get(0, SearchPoint()) == -1)
check(rs.go_get(0, SearchPoint(), 100) == 100)
check(rs.go_get_method(0, SearchPoint()) == -1)
check(rs.go_get_method(0, SearchPoint(), 100) == 100)
check(rs.go_get_template(0, SearchPoint()) == -2)
check(rs.go_get_template(0, SearchPoint(), 100) == 100)

View File

@ -22,7 +22,7 @@ public:
// Specialized template extend
%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;
}
const char *over(gaia2::SearchPoint, int x = 0) {