def test_inlinks(): links = sgrid.inlinks((3, 4)) assert_array_equal( np.array([ [-1, -1, -1, -1, 3, 4, 5, 6, 10, 11, 12, 13], [-1, 0, 1, 2, -1, 7, 8, 9, -1, 14, 15, 16], ]), links, )
def test_inlinks(): links = sgrid.inlinks((3, 4)) assert_array_equal( np.array( [ [-1, -1, -1, -1, 3, 4, 5, 6, 10, 11, 12, 13], [-1, 0, 1, 2, -1, 7, 8, 9, -1, 14, 15, 16], ] ), links, )
def test_inlinks(): links = sgrid.inlinks((3, 4)) assert_array_equal( np.array([[-1, -1, -1, -1, 0, 1, 2, 3, 4, 5, 6, 7], [-1, 8, 9, 10, -1, 11, 12, 13, -1, 14, 15, 16]]), links)
def test_inlinks(self): links = sgrid.inlinks((3, 4)) self.assertArrayEqual( np.array([[-1, -1, -1, -1, 0, 1, 2, 3, 4, 5, 6, 7], [-1, 8, 9, 10, -1, 11, 12, 13, -1, 14, 15, 16]]), links)