File: test_arraysetops.py

package info (click to toggle)
python-scipy 0.6.0-12
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 32,016 kB
  • ctags: 46,675
  • sloc: cpp: 124,854; ansic: 110,614; python: 108,664; fortran: 76,260; objc: 424; makefile: 384; sh: 10
file content (40 lines) | stat: -rw-r--r-- 829 bytes parent folder | download
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
33
34
35
36
37
38
39
40
#!/usr/bin/env python
#
# Created by: Travis Oliphant, April 2004
#
""" Test functions for sparse matrices

"""
__usage__ = """
Build arraysetops:
  python setup.py build
Run tests if scipy is installed:
  python -c 'import scipy;scipy.arraysetops.test(<level>)'
Run tests if arraysetops is not installed:
  python tests/test_sparse.py [<level>]
"""

import numpy
from numpy import array, rand

import sys
import random
from numpy.test.testing import *
set_package_path()
from scipy.arraysetops import *
restore_path()

class test_aso( NumpyTestCase ):

    def chech_all():
        test_unique1d()
        test_intersect1d()
        test_intersect1d_nu()
        test_setxor1d()
        test_setmember1d()
        test_union1d()
        test_setdiff1d()
        test_manyways()

if __name__ == "__main__":
    NumpyTest().run()