... I added the test "push a, push b, pop, pop expect a" since I missed it. /Now/ your implementation is broken. Sorry you typed out all that code. :) -- J. B....
... Of course it is not a valid implementation. I suppose your point will be that therefore JB needs at least one more test. This is not necessarily true. The...
... Agreed. If a test tests nothing useful, ditch it. ... Agreed. -- J. B. Rainsberger, Diaspar Software Services http://www.diasparsoftware.com :: +1 416...
All, I think the interesting thing here is that there seems to be a schism in the view of what TDD is. From J.B.'s point he's attempting to exercise the one...
... Therefore, the test should provide a fixture such that B/C/D all return correct values for a given input. Then I only have to assert that A returns the...
... Only when using less than two elements. ;-) However the question above misses an important point: Passing the tests isn't sufficient to conclude the code...
This type of discussion is where it's really hard for me to understand because I still think of the term "mock" used the way its used here to mean any ...
... So it's a middleman. Should that be refactored out? How should it be done? Many of the hubs that I'm running into could be termed middlemen or procedural....
Maybe I'm the only one who makes stupid mistakes while refactoring? I've run into the sort of error described from time to time... and have been glad to have...
I am wondering how I should go about testing some common patterns used within code. The basic pattern is that some interfaces define functionality, not just...
... Some years back I had a discussion with a rep from a chip vendor about the frequency at which background radiation flipped bits in DRAM. The figures he...
... SS> I recently said on the Junit list: SS> http://www.c2.com/cgi/wiki?MethodsShouldBePublic Ward Cunningham makes an interesting comment at the beginning...
Nathan, I would recommend the following article on this topic. http://www.dallaway.com/acad/dbunit.html It advocates the use of multiple databases. I have...
... This seems like a perfect fit for an Eclipse plugin (or other IDE). With the new 3.0 Eclipse, lots of stuff happens in the background (CVS sync, building,...
... Recall that I have submitted a broken implementation that will pass that test. However, the question of which tests we need is only a bit germane, since ...
... The "schism" is natural. Some new code arises from first-principles, using only primitive libraries like <iostream> below it. So dozens of narrow tests...
... Good idea, if one can get through the ranting. But a question: what should we do about all the people who are using TDD now and finding that it improves...
... From: Williams, Chris To: 'testdrivendevelopment@yahoogroups.com' Sent: Wednesday, October 29, 2003 9:27 AM Subject: RE: [TDD] One assertion per Test ? ...
... Unfortunately, one is not encouraged to revive that thread in this forum, as it makes people whine. I shall begin to use the term Test Objects to mean all...
... Difficult to say for sure, without actualy code. But if I remember the reasoning, my point was that you TDD would drive you to have a test that tests the...
... Hi, I posted a thread about this a few weeks back and wasn't really satisfied with the replies. I don't like the idea of using a test db right away but...
Ron, I'm having trouble understanding this line of thinking. When someone starts refactoring the stack implementation, how are they going to know that the ...
... Let A be a class that depends on interfaces in set B. Suppose its constructor requires as parameters implementations of the interfaces in B. For each...
Hi, I am just writing to find out what peoples thoughts are on testing similar activities in different layers? For example, my current system i am working on...
... Boo hoo, J.B. If you really think anyone will gain a deeper understanding of TDD from another round of Mock-Fake-Stub (like Rock-Paper-Scissors, but...
Hello Jim, Tuesday, November 4, 2003, 1:44:14 AM, you wrote: JI> Ron, JI> I'm having trouble understanding this line of thinking. When someone starts JI>...
The next Phoenix eXtreme Programming User Group meeting will be held on Monday, November 17th. This is an informal gathering of Phoenix area developers and...