Add equality operator to result.

I think, I would like to check result in a way like "result == 5", if I'm not interested in type of error.