def test_withrow_matrix_middle(): M1 = Mat([1, 2], [3, 4]) M2 = Mat([1, 2], [5, 6], [7, 8], [3, 4]) M3 = M1.append_row(Mat([5, 6], [7, 8]), index=1) assert M2 == M3
def test_withrow_matrix(): M1 = Mat([1, 2], [3, 4]) M2 = Mat([1, 2], [3, 4], [5, 6], [7, 8]) M3 = M1.append_row(Mat([5, 6], [7, 8])) assert M2 == M3
def test_withrow_vec_middle(): M1 = Mat([1, 2], [3, 4]) M2 = Mat([1, 2], [5, 6], [3, 4]) M3 = M1.append_row([5, 6], index=1) assert M2 == M3
def test_withrow_vec(): M1 = Mat([1, 2], [3, 4]) M2 = Mat([1, 2], [3, 4], [5, 6]) M3 = M1.append_row([5, 6]) assert M2 == M3