/
usr
/
lib64
/
python2.6
/
site-packages
/
numpy
/
core
/
tests
/
/usr/lib64/python2.6/site-packages/numpy/core/tests
mkdir
upload
Name
Size
Mode
Actions
data/
-
0755
rm
test_blasdot.py
465
0644
edit
dl
rm
test_blasdot.pyc
990
0644
edit
dl
rm
test_blasdot.pyo
990
0644
edit
dl
rm
test_defchararray.py
23583
0644
edit
dl
rm
test_defchararray.pyc
36847
0644
edit
dl
rm
test_defchararray.pyo
32392
0644
edit
dl
rm
test_dtype.py
3987
0644
edit
dl
rm
test_dtype.pyc
6546
0644
edit
dl
rm
test_dtype.pyo
6546
0644
edit
dl
rm
test_errstate.py
1712
0644
edit
dl
rm
test_errstate.pyc
1654
0644
edit
dl
rm
test_errstate.pyo
1654
0644
edit
dl
rm
test_function_base.py
984
0644
edit
dl
rm
test_function_base.pyc
2319
0644
edit
dl
rm
test_function_base.pyo
2017
0644
edit
dl
rm
test_getlimits.py
1630
0644
edit
dl
rm
test_getlimits.pyc
3799
0644
edit
dl
rm
test_getlimits.pyo
3799
0644
edit
dl
rm
test_machar.py
1000
0644
edit
dl
rm
test_machar.pyc
1705
0644
edit
dl
rm
test_machar.pyo
1705
0644
edit
dl
rm
test_memmap.py
2101
0644
edit
dl
rm
test_memmap.pyc
3341
0644
edit
dl
rm
test_memmap.pyo
3289
0644
edit
dl
rm
test_multiarray.py
51858
0644
edit
dl
rm
test_multiarray.pyc
70254
0644
edit
dl
rm
test_multiarray.pyo
69639
0644
edit
dl
rm
test_numeric.py
30773
0644
edit
dl
rm
test_numeric.pyc
48028
0644
edit
dl
rm
test_numeric.pyo
45970
0644
edit
dl
rm
test_numerictypes.py
14194
0644
edit
dl
rm
test_numerictypes.pyc
17908
0644
edit
dl
rm
test_numerictypes.pyo
17572
0644
edit
dl
rm
test_print.py
8091
0644
edit
dl
rm
test_print.pyc
9224
0644
edit
dl
rm
test_print.pyo
9224
0644
edit
dl
rm
test_records.py
5325
0644
edit
dl
rm
test_records.pyc
9183
0644
edit
dl
rm
test_records.pyo
8534
0644
edit
dl
rm
test_regression.py
43097
0644
edit
dl
rm
test_regression.pyc
67025
0644
edit
dl
rm
test_regression.pyo
62503
0644
edit
dl
rm
test_scalarmath.py
3789
0644
edit
dl
rm
test_scalarmath.pyc
5395
0644
edit
dl
rm
test_scalarmath.pyo
5096
0644
edit
dl
rm
test_shape_base.py
4571
0644
edit
dl
rm
test_shape_base.pyc
8890
0644
edit
dl
rm
test_shape_base.pyo
8326
0644
edit
dl
rm
test_ufunc.py
16944
0644
edit
dl
rm
test_ufunc.pyc
18366
0644
edit
dl
rm
test_ufunc.pyo
18135
0644
edit
dl
rm
test_umath.py
35991
0644
edit
dl
rm
test_umath.pyc
54765
0644
edit
dl
rm
test_umath.pyo
51377
0644
edit
dl
rm
test_umath_complex.py
17728
0644
edit
dl
rm
test_umath_complex.pyc
16886
0644
edit
dl
rm
test_umath_complex.pyo
16886
0644
edit
dl
rm
test_unicode.py
11255
0644
edit
dl
rm
test_unicode.pyc
15070
0644
edit
dl
rm
test_unicode.pyo
15070
0644
edit
dl
rm
Edit:
/usr/lib64/python2.6/site-packages/numpy/core/tests/test_function_base.py
(984B)
from numpy.testing import * from numpy import logspace, linspace class TestLogspace(TestCase): def test_basic(self): y = logspace(0,6) assert(len(y)==50) y = logspace(0,6,num=100) assert(y[-1] == 10**6) y = logspace(0,6,endpoint=0) assert(y[-1] < 10**6) y = logspace(0,6,num=7) assert_array_equal(y,[1,10,100,1e3,1e4,1e5,1e6]) class TestLinspace(TestCase): def test_basic(self): y = linspace(0,10) assert(len(y)==50) y = linspace(2,10,num=100) assert(y[-1] == 10) y = linspace(2,10,endpoint=0) assert(y[-1] < 10) def test_corner(self): y = list(linspace(0,1,1)) assert y == [0.0], y y = list(linspace(0,1,2.5)) assert y == [0.0, 1.0] def test_type(self): t1 = linspace(0,1,0).dtype t2 = linspace(0,1,1).dtype t3 = linspace(0,1,2).dtype assert_equal(t1, t2) assert_equal(t2, t3)
Save
cmd:
run