Comparing two output

Have you tried printing he values that you are comparing ? Are they what you expect ?