Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

do you create unit-tests for PODs (Plain Old Data Structure)? And why?

I'm interested in your opinions.

Regards Tobias

share|improve this question
3  
Questions asking for opinions are generally not suitable to Programmers. Please review the FAQ. –  Oded Apr 29 '13 at 11:31
1  
If it's a completely passive POD, what are you going to test about it? Set x, read x, assert x = x? –  deceze Apr 29 '13 at 11:39
2  
it's not about an opinion that could be this way or that way. It's about what is best practice with respect to TDD. Propably, everyone has a different opinion on that based on his knowledge - I'd like to know them. And with respect to the FAQ - it's clearly a question about "developer testing". –  Tobias Langner Apr 29 '13 at 11:56
1  
possible duplicate of When is it appropriate to not unit test? –  Bart van Ingen Schenau Apr 29 '13 at 12:06
1  
@dan1111: My judgement call was that this question is about a specific instance of the more general question and as such I marked it as duplicate. Feel free to disagree. –  Bart van Ingen Schenau Apr 29 '13 at 14:39
show 4 more comments

closed as not constructive by Walter, Bart van Ingen Schenau, MichaelT, gnat, Caleb Apr 29 '13 at 14:50

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer

up vote 4 down vote accepted

No, of course not. Writing unit tests for my compiler isn't worth my time.

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.