The original question was,
whether a project team member should do the work "as best as he/she can", and of course this includes a look at the final work before it is handed to the project manager / team leader / customer, of course regarding the Pareto principle,
or if the project member thinks that if he/she "somehow" finished the work,
should not regard the quality of his/her work,
like in ancient "Accord" work where you are paid for the number of items you produced,
and so though aware that your work "quality" is awful,
give it to a manager / team leader,
assuming that the manager has time to find and correct all the faults and bugs,
or if not the manager, the rest of the team.
Unfortunately, most of the answers here were not of high competence,
as they focused on "unit tests" and some other modern software procecures,
while the original questions was,
to bring it to a point
a) Shall I do work of which I a proud of, as I did my best
b) Or am I a lazy guy/lady who let my boss do my work, as my work is usually so full of ( easy to find bugs and faults, even for me), that it sometimes even need more time to fix it, than to let do it the receiver of the work, i.e. the manager.
So the question was a classical project management question:
Does delegation of work fit, if the result is that the manager has to fix all the bugs?
To answer the question,
I would prefer to work with (a),
while (b) would make me unhappy,
but many people LOVE (b) as they so just invest a minimum of power and time,
and let others correct their faults again and again.
Usually the (b) people are not liked by others, nor by the boss,
no matter "how cheap" they are...
But the word is full of lazy people.. who like to that other do their work ( I don´t mean the principle of capitalism by that ) :-(.