I'm currently trying to create some classes to do some Fourier Transformations. I'm trying to do it by creating some unit tests first, then build the basic functionality.
The problem with this is, is that well, I can write one test to see if the algorithm works, and I know the expected outcome. Then I start building the big algorithm, and if it works my unit tests will pass.
My problem here is, it's not really TDD. Because usually you create tests that test a very basic feature of a class. Now my class basically executes one big algorithm, and I can't test the smaller parts of the algorithm, since they are not public (I've always been told you'd never want to test private methods).
How do you deal with this?