File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -372,6 +372,10 @@ def testConsistency(self):
372372 slice (None , x , 1 ) for x in range (10 )
373373] + [
374374 slice (None , - x , 70 ) for x in range (10 )
375+ ] + [
376+ slice (x + 1 , x , - 1 ) for x in range (10 )
377+ ] + [
378+ slice (x + 4 , x , - 2 ) for x in range (10 )
375379]
376380
377381class test_Array (unittest .TestCase ):
@@ -435,6 +439,21 @@ def testSlicing(self):
435439 self .failUnlessEqual (
436440 d2 [x ], Array (elements [x ])
437441 )
442+ elements = [
443+ [[[1 ,2 ],[3 ,4 ]]],
444+ [[[5 ,6 ],[791 ,8 ]]],
445+ [[[1 ,2 ],[333 ,4 ]]],
446+ [[[1 ,2 ],[3 ,4 ]]],
447+ [[[5 ,10 ],[7 ,8 ]]],
448+ [[[0 ,6 ],[7 ,8 ]]],
449+ [[[1 ,2 ],[3 ,4 ]]],
450+ [[[5 ,6 ],[7 ,8 ]]],
451+ ]
452+ d3 = Array (elements )
453+ for x in slice_samples :
454+ self .failUnlessEqual (
455+ d3 [x ], Array (elements [x ])
456+ )
438457
439458 def testFromElements (self ):
440459 a = Array .from_elements (())
You can’t perform that action at this time.
0 commit comments