Mercurial > pylearn
diff test_dataset.py @ 54:70147d00615a
added assert
author | Frederic Bastien <bastienf@iro.umontreal.ca> |
---|---|
date | Tue, 29 Apr 2008 16:06:50 -0400 |
parents | e3ac93e27e16 |
children | 17729d7104fa |
line wrap: on
line diff
--- a/test_dataset.py Tue Apr 29 14:41:11 2008 -0400 +++ b/test_dataset.py Tue Apr 29 16:06:50 2008 -0400 @@ -9,7 +9,9 @@ print a ds = ArrayDataSet(a,{'x':slice(3),'y':3,'z':[0,2]}) print "len(ds)=",len(ds) + assert(len(ds)==10) print "example 0 = ",ds[0] +# assert print "x=",ds["x"] print "x|y" for x,y in ds("x","y"):