File: test_lapack_load.py

package info (click to toggle)
rpy 1.0.3-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 636 kB
  • ctags: 774
  • sloc: ansic: 2,139; python: 1,591; makefile: 119; sh: 73
file content (32 lines) | stat: -rw-r--r-- 582 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
from __future__ import nested_scopes

import unittest
import os,sys
sys.path.insert(1, "..")
import os, os.path

class LapackLoadTestCase(unittest.TestCase):

    def setUp(self):
        pass
    
    def testLapackLoad(self):

       from rpy import r
       
       fi = 'logit.r'
       
       #--load the functions
       r.source(fi)
       
       #--test a example
       x =50000 
       n = [x, x-500,x+460,x-400,x-100,x-4]
       y = [12, 24, 23, 2,4,5]
       f = [2,2,2,1,1,1]
       
       jk = r.logit_1fact(n,y,f)


if __name__ == '__main__':
     unittest.main()