I am trying to test this function
def print_board(M):
for i in range (M.shape[0]):
line=''
for j in range (M.shape[1]):
line+=str(int(M[i,j]))
print(line)
I created a new file to test it and imported my file and the function array but I am not too sure on how I can test it since I don't return it, I tried this :
assert(print_board(array([[1,1,1],[0,0,0],[1,1,1]],dtype='bool')) == '''111 000 111''')
but got
AssertionError