PageRenderTime 26ms CodeModel.GetById 19ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/test-suite/r/funcptr_runme.R

#
R | 7 lines | 7 code | 0 blank | 0 comment | 0 complexity | 4a03f69bd8f8328a5a0ac5302574ae42 MD5 | raw file
1source("unittest.R")
2dyn.load(paste("funcptr", .Platform$dynlib.ext, sep=""))
3source("funcptr.R")
4cacheMetaData(1)
5unittest(do_op(1, 3, add), 4)
6unittest(do_op(2, 3, multiply), 6)
7unittest(do_op(2, 3, funcvar()), 5)