Check the fact that two shapes has the same values at the same dimensions except one with index except.