Comment by susshshshah Comment by susshshshah 19 hours ago 4 replies Copy Link View on Hacker News How do you know what tests to write if you don’t understand the code?
Copy Link 9rx 18 hours ago Next Collapse Comment - Same way you normally would? Tests are concerned with behaviour. The code that implements the behaviour is immaterial. Reply View | 0 replies
Copy Link wiseowise 18 hours ago Prev Next Collapse Comment - How do you do TDD without having code in the first place? How do QA verifies without reading the source? Reply View | 0 replies
Copy Link adastra22 17 hours ago Prev Next Collapse Comment - I’m not sure I understand this statement. You give your program parameters X and expect result Y, but instead get Z. There is your test, embedded in the problem statement. Reply View | 0 replies
Same way you normally would? Tests are concerned with behaviour. The code that implements the behaviour is immaterial.