views:

48

answers:

1

Does there exist a site which hosts collections of unit tests in various fields? specifically, instead of digging and extracting the packages that seem close to your subject of coding, I'd like to use it like shared code, see how it was tested. (and then also know how it should work)

So is there one like that? doesn't matter which programming language they're written in.

+1  A: 

You can find lots of test code with Google code search. Search for "test" or the namespace/package names of popular test frameworks ("org.junit", for example)

Nat
Thanks, that is a pretty good resource.All those algorithms that are rewritten in every language, protocols, formats, it would be nice if there was an article explaining the concept, along with pseudo code, and some unit tests to make sure you're all on the same page. right now, I have wikipedia, and the open source libraries on the web, where you try to understand the c code or whatever.Wondering what other programmers do. Thanks