}
else
{//here we are sure to have (std::count(conn,conn+4,conn[1])==2)
- std::swap(conn[2],conn[3]);
+ if(conn[1]==conn[3])
+ std::swap(conn[2],conn[3]);
}
}
}
d=DataArrayInt([(0,2),(1,2),(3,1)])
d.sortEachPairToMakeALinkedList()
self.assertTrue(d.isEqual(DataArrayInt([(0,2),(2,1),(1,3)])))
+ d=DataArrayInt([(8,6062),(6062,472),(472,6292),(6292,960)])
+ d.sortEachPairToMakeALinkedList()
+ self.assertTrue(d.isEqual(DataArrayInt([(8,6062),(6062,472),(472,6292),(6292,960)])))
pass
def testSwig2DAIIsRange(self):