Did I find the right examples for you? yes no

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/t/h/TheThresher-HEAD/thresher/tests.py   TheThresher(Download)
    def test_indexing_basic(self):
        for x in xrange(self.Nx):
            for y in xrange(self.Ny):
                i = utils.xy2index(self.shape, x, y)
                assert (x, y) == utils.index2xy(self.shape, i)
                assert i == utils.xy2index(self.shape,