#NEWLINE# def test_strided_limits( self ) : #NEWLINE# #INDENT# r = range ( 0 , 101 , 2 ) #NEWLINE# self . assertIn ( 0 , r ) #NEWLINE# self . assertNotIn ( 1 , r ) #NEWLINE# self . assertIn ( 2 , r ) #NEWLINE# self . assertNotIn ( 99 , r ) #NEWLINE# self . assertIn ( 100 , r ) #NEWLINE# self . assertNotIn ( 101 , r ) #NEWLINE# r = range ( 0 , ( - 20 ) , ( - 1 ) ) #NEWLINE# self . assertIn ( 0 , r ) #NEWLINE# self . assertIn ( ( - 1 ) , r ) #NEWLINE# self . assertIn ( ( - 19 ) , r ) #NEWLINE# self . assertNotIn ( ( - 20 ) , r ) #NEWLINE# r = range ( 0 , ( - 20 ) , ( - 2 ) ) #NEWLINE# self . assertIn ( ( - 18 ) , r ) #NEWLINE# self . assertNotIn ( ( - 19 ) , r ) #NEWLINE# self . assertNotIn ( ( - 20 ) , r )