C2_W1 Assignment: trying to understand source of unittest failure

I have completed this week assignment, but the last unittest

w1_unittest.test_min_edit_distance(min_edit_distance)

gave me an error:

Distance matrix has wrong values.
	Expected: [[ 0  2  4  6  8 10]
 [ 2  0  2  4  6  8]
 [ 4  2  0  2  4  6]
 [ 6  4  2  0  2  4]
 [ 8  6  4  2  3  5]].
	Got: [[0 1 2 3 4 5]
 [1 0 2 4 6 7]
 [2 2 0 2 4 6]
 [3 4 2 0 2 4]
 [4 6 4 2 3 5]].
 15  Tests passed
 1  Tests failed

But I see that the expected result has this array in the first row - [ 0 2 4 6 8 10]. How is it possible?

If you open the w1_unittest.py file, you can read the test cases provided by the test_min_edit_distance() function.

1 Like

@Omer_Tzuk

If you could resolve your issue, kindly send the codes screenshot by personal DM for the previous grade cell you got failed test results. Click on my name and then message.

Regards
DP