Mercurial > pylearn
changeset 54:70147d00615a
added assert
author | Frederic Bastien <bastienf@iro.umontreal.ca> |
---|---|
date | Tue, 29 Apr 2008 16:06:50 -0400 |
parents | a1eb3dbc035d |
children | 1729ad44f175 17729d7104fa |
files | test_dataset.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
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"):