R - SF #3168676 Fix %rename not working for member variables and methods. Add new simple rename testcase with runtime tests for C# and R
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12432 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
1918e2a844
commit
f4c74bc500
6 changed files with 79 additions and 1 deletions
20
Examples/test-suite/r/rename_simple_runme.R
Normal file
20
Examples/test-suite/r/rename_simple_runme.R
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
source("unittest.R")
|
||||
dyn.load(paste("rename_simple", .Platform$dynlib.ext, sep=""))
|
||||
source("rename_simple.R")
|
||||
cacheMetaData(1)
|
||||
|
||||
s <- NewStruct();
|
||||
unittest(111, s$NewInstanceVariable)
|
||||
unittest(222, s$NewInstanceMethod())
|
||||
unittest(333, NewStruct_NewStaticMethod())
|
||||
unittest(444, NewStruct_NewStaticVariable())
|
||||
unittest(555, NewFunction())
|
||||
unittest(666, NewGlobalVariable())
|
||||
|
||||
s$NewInstanceVariable <- 1111
|
||||
NewStruct_NewStaticVariable(4444)
|
||||
NewGlobalVariable(6666)
|
||||
|
||||
unittest(1111, s$NewInstanceVariable)
|
||||
unittest(4444, NewStruct_NewStaticVariable())
|
||||
unittest(6666, NewGlobalVariable())
|
||||
Loading…
Add table
Add a link
Reference in a new issue