Mercurial > pylearn
diff test_dataset.py @ 160:a910141fbe5b
Automated merge with ssh://p-omega1@lgcm.iro.umontreal.ca/tlearn
author | Frederic Bastien <bastienf@iro.umontreal.ca> |
---|---|
date | Mon, 12 May 2008 16:52:00 -0400 |
parents | 90104343c665 |
children | 60e00cce3492 |
line wrap: on
line diff
--- a/test_dataset.py Mon May 12 16:17:22 2008 -0400 +++ b/test_dataset.py Mon May 12 16:52:00 2008 -0400 @@ -383,7 +383,7 @@ assert example+example2==example3 assert have_raised("var['x']+var['x']",x=example) -def test_CacheDataSet(): +def test_CachedDataSet(): print "test_CacheDataSet" a2 = numpy.random.rand(10,4) ds1 = ArrayDataSet(a2,LookupList(['x','y','z'],[slice(3),3,[0,2]]))###???tuple not tested @@ -436,9 +436,9 @@ def test_ArrayFieldsDataSet(): print "test_ArrayFieldsDataSet" raise NotImplementedError() - -test1() -test_LookupList() -test_ArrayDataSet() -test_CacheDataSet() +if __name__=='__main__': + test1() + test_LookupList() + test_ArrayDataSet() + test_CachedDataSet() #test pmat.py