예제 #1
0
파일: tests.py 프로젝트: shaung/loops
def test_index():
    l = Loop(range(9))
    for x in l(3):
        print l.index, l.count, l.isfirst(), l.islast(), l.iseven(), x
    print l.isempty()